필터 지우기
필터 지우기

empty plotting using contourf

조회 수: 9 (최근 30일)
Yu Li
Yu Li 2017년 12월 17일
편집: Yu Li 2018년 11월 22일
Hi: I have a data set of X,Y,Z, which corresponds to x,y axis, and paremeter need to be plotted
but when I use [xc,yc]=contourf(X,Y,Z),
the plotting is blank, could anyone help me about this
Thanks!
Li

채택된 답변

Star Strider
Star Strider 2017년 12월 17일
Your data throws this error when I try to plot it with contourf:
Warning: Contour not rendered for constant ZData
> In contourf (line 60)
You will have to solve that problem.
Exploring this, the mean (using nanmean) of ‘Z’ is 6, and standard deviation (using nanstd) is 0.
This is the best you can hope for:
figure(1)
contourf(X, Y, Z, [6 6])
grid on
  댓글 수: 2
Yu Li
Yu Li 2017년 12월 17일
thank you so much!
Star Strider
Star Strider 2017년 12월 17일
As always, my pleasure!

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

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