How can I overplot contours on an image? The image and the contours have different limits. I tried plotting the image using the bottom x-axis and left y-axis and the contrary for the contours. But it doesn't work.
My code:
imagesc(1:100,1:100,C)ax1 = gca;ax2 = axes('Position',get(ax1,'Position'),...'XAxisLocation','top','YAxisLocation','right',...'Color','none',...'XColor','k','YColor','k');contour(ax2,Z)
This only displays the contours. I am unable to see the image.
Can someone provide any assistance?
Best Answer