I am ploting a line plot from an image. Ho can i plot 3 different plots in one plot.?

figure('color','white');
imagesc(X003,[-5e-8 5e-8]);
axis off image;
colormap gray;
[cx1,cy1,c1,~,~]= improfile;
I have to plot Cx1,cy1,c1 in one line plot. i am able to plot in scatter and stem plot but not as line plot.
how can i plot this.?

 采纳的回答

Example:
point_idx = 1 : length(cx1);
plot(point_idx, cx1, 'b*-', point_idx, cx2, 'g.-', point_idx, c1, 'rs-')
However, be aware that cx1 is in the range 1 : number of columns, and cx2 is in the range 1 : number of rows, and cx2 is either in the range 0 to 255 or in the range 0 to 1. It is fairly likely that this item will not be to the same scale as cx1 or cx2.

1 个评论

Thanks alot :) its working.!
point_idx = 1 : length(c1);
plot(point_idx, cx1, 'b*-', point_idx, cy1, 'g.-', point_idx, c1, 'rs-')
I have one elementary question here point_idx role is.?

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Scatter Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by