how to assign multiple values on a signle figure?

1 回表示 (過去 30 日間)
farfar
farfar 2018 年 2 月 5 日
回答済み: Walter Roberson 2018 年 2 月 6 日
Hello I have a matrix with three column and many rows (a=[x,y,z]) (x, y are pixels location and z is the value). I draw a figure with scatter3(x,y,z). please see the attachment. if I click on each point in this figure using data cursor, I am able to see (x,y location and z values). but, I have some other per pixel calculated values that I want to assign to each pixel(x,y) and I want to be able to see all of them in one figure. Like if i click on each point on this figure, I can see all those values either on the figure or on a pop-up table. can I do something like that in matlab ?
Thanks !

回答 (2 件)

farfar
farfar 2018 年 2 月 5 日

Walter Roberson
Walter Roberson 2018 年 2 月 6 日
See datacursormode() and set the UpdateFcn property to a function handle of your custom reporting routine. The routine should return a cell array of character vectors, which will be displayed one entry per line.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by