contour matrix empty in contourf

조회 수: 2 (최근 30일)
Yu Li
Yu Li 2018년 11월 21일
댓글: Walter Roberson 2018년 11월 22일
Hi:
I have a X,Y,Z matrix, and use command [xc,yc]=contourf(new_X,new_Y,new_Z); to plot a contour plot.
The xc is empty, but it can be seen in 'new_Z', it is not empty and have a wide range of variation.
is there any problem with my operation?
Thanks!
Yu
  댓글 수: 3
Yu Li
Yu Li 2018년 11월 22일
Hi Walter:
Thanks for your reply.
could you please explain what do you mean by 'ask for at least 15 contour intervals'?
Thanks!
Yu
Walter Roberson
Walter Roberson 2018년 11월 22일
NumLevels = 15;
[M, c] = contourf(new_X, new_Y, new_Z, NumLevels);
My tests with your data shows that c comes out empty if the number of levels is 14 or less (default is 10.)

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

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