How to limit the contour plot to specific points?

조회 수: 1 (최근 30일)
Philippe Corner
Philippe Corner 2018년 10월 30일
댓글: Star Strider 2018년 10월 30일
How could I plot contour until the toppest scatter points?

채택된 답변

Star Strider
Star Strider 2018년 10월 30일
See the documentation on Contours at One Level (link) in the contour (link) documentation.
  댓글 수: 4
Philippe Corner
Philippe Corner 2018년 10월 30일
Not sure why is not working. I had to create my contour using a matrix
[c,h]=contourf(xq,yq,reshape(zq,100,100));
Star Strider
Star Strider 2018년 10월 30일
I cannot determine the reason it is not working without your data and code. The first two arguments can be vectors or matrices, the third must be a matrix. The dimensions must match in any event.
Apparently your reshape call solved the problem.

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

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