Borrar filtros
Borrar filtros

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

23 visualizaciones (últimos 30 días)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 19 de Oct. de 2012
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

Respuestas (2)

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

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by