How do you use ndgrid

15 次查看(过去 30 天)
dfsalj
dfsalj 2017-8-21
编辑: dfsalj 2017-8-21
Answers shows how to use ndgrid to interpolate for a given value.

回答(1 个)

Andrei Bobrov
Andrei Bobrov 2017-8-21
Lengths = [1, 20,40,60,75];
Angle = [.7999,.9002,.9999,1.1001,1.1999];
A = rand(5,5);
[x,y] = ndgrid(-5:0.8:5);
[ii,jj] = ndgrid(Lengths,Angle);
F = griddedInterpolant(ii,jj,A);
out = F(10,.7999);

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by