
XYZ and Value plot
5 ビュー (過去 30 日間)
古いコメントを表示
I have point in space defined by Cartesian coordinates (XYZ) and value fot this point. I want to create 3D plot for all points including this value. I try to do that using surf but I don not know how to include a value for a given point. Maybe someone can help me?
1 件のコメント
Star Strider
2019 年 11 月 2 日
Aleksandra Rogowiec posted this Comment about an hour ago:
I want to do something like that below. I have 5042X4 matrix, first column is x value, second is y value, third is z value and fourth is pressure for this point I know how to make plot from all points - scatter3 (X, Y, Z, 10, pressure, '.'). But how to prepare a mesh like that and plot it?
%this preapre a mesh for all points but not include fourth column of matrix
[az,el,r]=cart2sph(dane_4000(:,1),dane_4000(:,2),dane_4000(:,3));
[Fi,Theta]=meshgrid(az,el);
[X_W,Y_W,Z_W]=sph2cart(Fi,Theta,r);
surf(X_W,Y_W,Z_W);

回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!