How Can I do contour plot?

조회 수: 2 (최근 30일)
Francesco
Francesco 2014년 3월 3일
편집: Francesco 2014년 3월 20일
Suppose I have a square figure.

채택된 답변

Walter Roberson
Walter Roberson 2014년 3월 3일
MATLAB cannot create continuous figures. You could approximate a continuous figure by creating a surf() or a patch() and configure shading and lighting properties. For your purpose I think a surf() would be most appropriate.
  댓글 수: 1
Walter Roberson
Walter Roberson 2014년 3월 3일
Before you were working with x (monotonically increasing) and with y (a variety of values), and with no Z. That was not enough information to generate a 3D plot.
If you now have x and y coordinates for each of the points, and you have a z (value) for the points as well, then you can use the approaches discussed early on: griddata() or trisurfinterp or scatteredinterpolant. Take the resulting rectangular array of z and surf() it, and set the shading properties of the surface and set up the lighting properties as well.

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

추가 답변 (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