Matlab uses griddata three-dimensional interpolation, and then draw contourf to show that the cloud image is incomplete, what should I do?

4 次查看(过去 30 天)
Matlab draws contourf using known data. The contourf map displayed after using griddata griddata is incomplete and is truncated. How can it be displayed completely?
[X1,Y1,Z1]=griddata(x,y,f, linspace(min(x),max(x),1000),linspace(min(y),max(y),1000)','v4');
contourf(X1./1000,Y1./1000,Z1)
  3 个评论
Annie
Annie 2019-8-16
I manually modify the display range of x y every time, but the inappropriate range will distort the image, which is not a good method.
[X1,Y1,Z1]=griddata(x,y,fx,linspace(min(x),max(x),2000),linspace(min(y)-600,max(y)+600,2000)','v4');
figure2.png
Steven Lord
Steven Lord 2019-8-16
The contourf map displayed after using griddata griddata is incomplete and is truncated.
Why do you say that? What is missing or truncated from the image that you posted that you expected / wanted to see?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by