how to plot create z-matrix from x,y,z cordinates
14 views (last 30 days)
Show older comments
Hi, I'm just new to Matlab. I wish to plot the surface contour plot with the x, y, z coordinate having 1024 values. could anyone help me out with it .....
0 Comments
Answers (2)
Star Strider
on 12 May 2016
If your ‘x, y, z coordinate having 1024 values’ are already 2D matrices of the same size, each with 1024 elements, you can generate a surface and contour plot with:
surfc(x, y, z)
2 Comments
Star Strider
on 13 May 2016
It depends on how your data are organised. Even though they’re vectors, they could actually be gridded.
I would plot your data as:
stem3(x, y, z)
to see what your data look like. If they appear to be gridded, you may only need to reshape the vectors into matrices to use the surf function.
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!