How do you use ndgrid
조회 수: 20 (최근 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!