3D graph drawing

2 次查看(过去 30 天)
zhe li
zhe li 2011-12-28
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.

采纳的回答

Sean de Wolski
Sean de Wolski 2011-12-28
Hold the figure on:
figure; hold on
surf(x,w,v)
surf(x,y,z)

更多回答(1 个)

Honglei Chen
Honglei Chen 2011-12-28
You can try hold
surf(X,Y,Z);
hold on;
surf(X,W,V);

类别

Help CenterFile Exchange 中查找有关 Directed Graphs 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by