小编Pie*_*ent的帖子

在3D空间中的多个2D矢量[场]之间的插值

用quiver3绘制的2D矢量的压力 - 高度层

我试图在这里查看MatLab文档:

http://www.mathworks.com/help/matlab/ref/interp3.html

然后在

help interp3
Run Code Online (Sandbox Code Playgroud)

MatLab的一部分,但是我很难弄清楚我想要什么,以及interp3是否是我正在寻找的东西.但是,我可能只是不理解我是否能够按照现在的方式使用interp3.我附上了一个我可以用我编写的MatLab程序创建的图形.它采用NOAA lat/long(x/y),风向量的U/V方向,然后是该区域的2D水平的Z值.

使用格式:

quiver3(x,y,z,u,v,w) 
Run Code Online (Sandbox Code Playgroud)

将"W"组件设置为0.

这是该领域的一个非常小的部分,但我想要做的是在这些2D矢量场之间进行插值以创建3D场.

我是否必须将U/X,V/Y和W/Z分组到自己的向量中才能使用interp3?我仍然不确定3D函数"V"部分是否在interp3语法中

Vq = interp3(X,Y,Z,V,Xq,Yq,Zq)
Run Code Online (Sandbox Code Playgroud)

这是该领域的一个非常小的部分,但我想要做的是在这些2D矢量场之间进行插值以创建3D场.

我的代码:

tic
clc
clear all

% You will have to change the directory to wherever you place the read_grib.r4
% file. In addition, It's necessary to have an external compiler connected
% to MatLab in order to build the mex-file that gives you the power to use
% the read_grib decoding. This is really tricky. On OSX I used Xcode as an
% environment …
Run Code Online (Sandbox Code Playgroud)

matlab interpolation vector matlab-figure

6
推荐指数
1
解决办法
1073
查看次数

标签 统计

interpolation ×1

matlab ×1

matlab-figure ×1

vector ×1