3D graph drawing

1 Ansicht (letzte 30 Tage)
zhe li
zhe li am 28 Dez. 2011
I have a few functions. I would like to draw them on the same 3D graph. However, I was not able to achieve this. The matlab is only executing the last command. the example is, X=[...]; Y=[...]; Z=[...]; W=[...]; V=[...]; surf(X,Y,Z) surf(X,W,V) matlab is executing the last command which is surf(X,W,V) rather than two commands surf(X,Y,Z) and surf(X,W,V). Could anyone help me with this please? Thank you very much.

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 28 Dez. 2011
Hold the figure on:
figure; hold on
surf(x,w,v)
surf(x,y,z)
  1 Kommentar
zhe li
zhe li am 28 Dez. 2011
Thank you very much.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Honglei Chen
Honglei Chen am 28 Dez. 2011
You can try hold
surf(X,Y,Z);
hold on;
surf(X,W,V);
  1 Kommentar
zhe li
zhe li am 28 Dez. 2011
Thank you very much.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by