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

image analysisploting

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.?

Best Answer

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.
Related Question