How to draw a few different size functions on one 3D graph?

조회 수: 2 (최근 30일)
zhe li
zhe li 2011년 12월 28일
Could anybody help me with this please? I would like to draw a 3D graph consists of 3 different sizes of function. e.g. the size of the first function is (6,12),the size of the second function is (6,16) and the size of the third function is (6,22). The three functions are not related,however,I am hoping they can be represented in the same graph and using the same axis scale. Thanks in advance.
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 12월 28일
Duplicate is at http://www.mathworks.com/matlabcentral/answers/24860-3d-graph-drawing

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

채택된 답변

Andrew Newell
Andrew Newell 2011년 12월 28일
I will assume that by "size" you mean the range of the output (the z variable) and you are plotting a line using plot3. If you type hold on after your first plot, the next two plots will adjust the scale appropriately so all three curves are displayed.
  댓글 수: 2
Walter Roberson
Walter Roberson 2011년 12월 28일
My speculation would be that zhe is wanting to do surface plots, using surf(). "hold on" is the general solution for that too -- but the surfaces will usually mix together unless special care is taken.
Walter Roberson
Walter Roberson 2011년 12월 28일
Yup, surf alright.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by