I am trying to use the matlab heatmap funciton as described in http://www.mathworks.com/matlabcentral/fileexchange/24253-customizable-heat-maps/content/html/heatmap_examples.html
However I am facing the following error even when I use their data i.e. spreads_small and labels_small:
heatmap(spreads_small(1:5,1:7), labels_small(1,1:7), labels_small(1:5));
??? Subscript indices must either be real positive integers or logicals.
Error in ==> heatmap>setAxesLabels at 280
set(p.hAxes,'YTick',ytick,'YTickLabel',ylab(ytick));
Error in ==> heatmap at 111
[p, xlab, ylab, hXText] = setAxesLabels(p, xlab, ylab);
I don't know why this error is popping, I have been trying to use this heatmap for almost 2 hours without any success! Can please help me ASAP?