필터 지우기
필터 지우기

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
zhe li
zhe li 2011년 12월 28일
Thank you very much.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Honglei Chen
Honglei Chen 2011년 12월 28일
You can try hold
surf(X,Y,Z);
hold on;
surf(X,W,V);
  댓글 수: 1
zhe li
zhe li 2011년 12월 28일
Thank you very much.

댓글을 달려면 로그인하십시오.

카테고리

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