Please help, I was trying to show different graphs with different colors for the improfile, everything that I tried doesn't work, is this even possible? Thank you

1 view (last 30 days)
I1 = imread([pathname,filename]);
I1 = imrotate(I1,270);
figure;
I2 = imcrop(I1,[1075 174 1000 1649]);
imshow(I2)
hold on
plot([346 884], [566 566],'r-','linewidth',0.1);
plot([884 386], [783 783],'y-','linewidth',0.1);
plot([661 888], [1027 1027],'b-','linewidth',0.1);
x = [346 884];
y = [566 566];
x1 = [386 884];
y1 = [783 783];
x2 = [661 888];
y2 = [1027 1027];
figure;
hold on
improfile(I2,x,y),grid on;
improfile(I2,x1,y1);
improfile(I2,x2,y2);

Answers (0)

Community Treasure Hunt

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

Start Hunting!