フィルターのクリア

plot points with x, y coordinate over a image

3 ビュー (過去 30 日間)
Sara Antonio
Sara Antonio 2016 年 5 月 30 日
コメント済み: Image Analyst 2016 年 5 月 30 日
Hi,
I have a matrix n,m with some z values that I plot in a imagesc. Then, I have another matrix with the same dimensions (n,m) with other z values. I want to overlap on top of my initial imagesc some dark dots with n,m position taken from my second matrix. It really doesn't matter to show which value it is, but yes the position it has. To have a better idea of what i want to do, it would be like an imagesc image with 2 dots in every column showing where the max and min of the second matrix are, looking like kinda as a contour. I tried already contour, contourf, imagesc but none of them seem to give me what I want. Is there some way so I can have a plot(x,y,z) (in 2 dimensions) so it can overlap a imagesc?
Thanks in advance, Sara

回答 (1 件)

Image Analyst
Image Analyst 2016 年 5 月 30 日
How are you calling imagesc()? Do you have an image array? If so, just set those rows to 0 for each column.
  2 件のコメント
Sara Antonio
Sara Antonio 2016 年 5 月 30 日
I already tried that. I mean, I transform my second matrix as a zero matrix with 1 in the positions I want, but then it overlaps totally the first image because it attributes a color to zero.
Image Analyst
Image Analyst 2016 年 5 月 30 日
I'm having trouble visualizing what you want. Attach an m-file and a picture.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by