I want to print an 1-d array lets say 1:10 with imagesc and I want the resulting plot to be an 1-d array as well.
But when for example I run
I get the following plot:
I would actually want the columns (the y-axis) to collapse in one square, namely:
I used for the latter graph
set(gca,'dataAspectRatio',[1 1 1])
but this also makes the colorbar small.
How can I do that have the latter figure, but with a bigger (in height) colorbar.
Thank you in advance