how to plot x,y,z axes in a single graph?
Show older comments
I need to plot 3 variables namely x,y,z. I need to plot all the 3 variable in a single figure window. how to do it
Answers (2)
Walter Roberson
on 19 Oct 2012
plot3(x,y,z)
or
scatter3(x,y,z)
or
surf(x,y,z)
or
plot([x(:), y(:), z(:)])
depending on what kind of graph is desired.
Sachin Ganjare
on 19 Oct 2012
0 votes
You can use stem3(x,y,z,'MarkerFaceColor','g').
Refer link below:
Hope it helps!!!
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!