How can I plot a sphere when I know [x,y,z] coordinates of points belonging to the sphere?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dear mathworks users, I have a serie of point coordinates (matrix size Nx3) which belong to the sphere. How can I plot it with maltab? I am not able to find any surf and meshgrid combination for use.
And finally, my data are a spherical function and each point has its own intensity value. So I need to add color based on intensity value to each point. The intensity outside the points should be interpolated based on control points.
Thanks for help. Rene
0 comentarios
Respuestas (1)
Walter Roberson
el 18 de Sept. de 2015
pointsize = 20;
scatter3(x(:), y(:), z(:), pointsize, intensity(:))
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!