how to plot x,y,z axes in a single graph?

4 次查看(过去 30 天)
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

回答(2 个)

Walter Roberson
Walter Roberson 2012-10-19
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
Sachin Ganjare 2012-10-19
You can use stem3(x,y,z,'MarkerFaceColor','g').
Refer link below:
Hope it helps!!!

类别

Help CenterFile Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by