contour matrix empty in contourf

3 views (last 30 days)
Yu Li
Yu Li on 21 Nov 2018
Commented: Walter Roberson on 22 Nov 2018
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 Comments
Yu Li
Yu Li on 22 Nov 2018
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 on 22 Nov 2018
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.)

Sign in to comment.

Answers (0)

Categories

Find more on Contour Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!