Superimpose a curve on a a image generated by 'imagesc' command, I need to keep two different Y-axis.

1 view (last 30 days)
First, I have generated a image plot using the the command 'imagesc' with a data matrix 'A'. I have fixed the Y-axis limits (as it is needed).
Now I have to plot a curve (t) on the same image plot with same X-axis but different Y-axis scale.
Requirement is, the Y-axis corresponding to the image plot should be on left side and the Y-axis corresponding to the curve should be on right side.
>>imagesc(x,y,A); hold on; plot (x,t);
Please give suggestions how to handle axis in this case ?
Thank you ......

Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!