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에서 Annotations에 대해 자세히 알아보기

질문:

2015년 12월 11일

편집:

2015년 12월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by