How do you use ndgrid
15 ビュー (過去 30 日間)
古いコメントを表示
Answers shows how to use ndgrid to interpolate for a given value.
0 件のコメント
回答 (1 件)
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);
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!