フィルターのクリア

plot 3d set of data(x,y,z) colored by the z coordinate

4 ビュー (過去 30 日間)
ha ha
ha ha 2018 年 2 月 13 日
編集済み: ha ha 2018 年 4 月 6 日
Let's say: I have a set of data (x,y,z) containing 1000 points
[x1 y1 z1
x2 y2 z2
x3 y3 z3
.........
xn yn zn]
I want to plot all points in 3d-coordinate and the contour is colored by z-coordinate value (as the below sample). How can I do that?

採用された回答

ha ha
ha ha 2018 年 2 月 13 日
編集済み: ha ha 2018 年 4 月 6 日
You can test with the input data "Book1.txt" (~900points)
scatter3(P(:,1),P(:,2),P(:,3),9,P(:,3),'.'); %9 is the size of point
colormap(jet); % or other colormap
colorbar; % color bar
See the result:

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by