Two x axis and two y axis on imagesc

  • Follow


Hey.

I'v got a 2d array of data that i plot using the code seen below. I need there to be two x axis and two y axis (top and button - left and right). The x axis's are multiple of eachother. I need "vectorX1" and "vectorY1" to be the 2nd axis's. See my code her:

imagesc(Array)
vectorX = X(1:column);
vectorY = zeros(row,1);

stepsize = 0.047625*10^(-6);
%vectorX = (vectorX - mean(vectorX))*stepsize*10^3;
%vectorY = (vectorY - mean(vectorY))*stepsize*10^3;

map = colormap;
the_min = min(min(Array));
the_max = max(max(Array));
img = round(64*(Array-the_min)./(the_max-the_min));
imagesc(vectorX, vectorY, img);
axis equal;
xlabel('mm');
ylabel('mm');
0
Reply Anders 4/7/2010 1:37:21 PM


0 Replies
270 Views

(page loaded in 0.86 seconds)


Reply: