필터 지우기
필터 지우기

Difference between a contour map and surface map

조회 수: 34 (최근 30일)
Amanda
Amanda 2012년 8월 22일
What is the difference btwn a contour map and surface map?
I know that for both the lines are connecting the same quantity.
And we can have a colored-in contour map which then becomes
a surface map? So what is the difference?
Amanda

채택된 답변

Star Strider
Star Strider 2012년 8월 22일
Unless there is something in your question I have not understood, the contour plot is 2-D and the surface plot is 3-D. The information in both is the same. The surfc function actually plots both in the same figure.
  댓글 수: 2
Amanda
Amanda 2012년 8월 22일
No contour can also be a 3d plot - two variables are fixed and one is changing. So I plot with contourf or surf, what is the difference?
Star Strider
Star Strider 2012년 8월 22일
편집: Star Strider 2012년 8월 22일
The contour function produces a 2-D plot of contour lines, contourf fills the 2-D plot contour lines with the colors appropriate to the value of the function, and surf and surfc generate 3-D versions of the same data, with surfc generating both 2-D and 3-D depictions. The contour3 function generates a 3-D version of the contour plot.
The difference is only in the way the data are depicted — 2-D or 3-D — not in the data on the plot. The plot function you choose depends on how you want your data presented.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by