Place a line as a marker in a 2D image
2 ビュー (過去 30 日間)
古いコメントを表示
Hi everybody,
I would like to add colored lines (let's say red) to a 2D image i created with imagesc. I am going to analyse a certain colom of this image, and 1 would like to add colored vertical lines to the image, so I can show which lines have been analysed (to show in a report). I hope someone can help me with this.
Thanks! Ellen
0 件のコメント
採用された回答
Paulo Silva
2011 年 2 月 21 日
load clown
clims = [10 60];
imagesc(X,clims)
colormap(gray)
XPosition=100 %choose where to draw the line
line([XPosition XPosition],get(gca,'Ylim'),'Color',[1 0 0])
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!