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

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일

3 개 추천

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일

0 개 추천

You can use stem3(x,y,z,'MarkerFaceColor','g').
Refer link below:
Hope it helps!!!

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

태그

질문:

2012년 10월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by