I have what I think is a simple problem: I have a matrix that I image using imagesc
. I simply want to show a second y-axis on the right hand side of the image. How do I do that? Example:
clear all;
aMatrix = rand(20,30);
yAxis1 = 32.*(1:size(aMatrix,1));
yAxis2 = 165.*(1:size(aMatrix,1));
xAxis = 1:size(aMatrix,2);
imagesc(yAxis1, xAxis1, aMatrix);
The following will show the image with yAxis1
, on the left hand side. That is great, but how do I show yAxis2
on the right hand side of the image at the same time? Thanks.