フィルターのクリア

Visualisation 2D mesh grey values

1 回表示 (過去 30 日間)
Fiboehh
Fiboehh 2011 年 4 月 18 日
Hellow, i need code for visualtisation for a 2D mesh. I have a matrix with grey values ( 0 to 1) and i have to visualate it according to the grey value. For example a 3x3 matrix [ 0.236 0.256 0.785 ; 1 0 0 ; 0.369 0.259 0 ] and know i want to see where the most grey is in a mesh. Hopefully anyone can help me. Thx

採用された回答

Patrick Kalita
Patrick Kalita 2011 年 4 月 18 日
The commands image and surf might be useful here.
Or, you can try using the plot selector to interactively find a type of plot that is right for your data.

その他の回答 (2 件)

Fiboehh
Fiboehh 2011 年 4 月 27 日
Okj, i gone use surf() But how can i submit it must be a gray value? I tried surf(a,'Colormap',gray)
but it gives a fault. And i also want to give the figure a name, not figure 1. Thx

Alexandre Carvalho Leite
Alexandre Carvalho Leite 2011 年 4 月 27 日
Just type this: surf(peaks(30)), colormap('Gray');

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by