
XYZ and Value plot
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Star Strider
el 2 de Nov. de 2019
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);

Respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!