How do you use ndgrid

조회 수: 20 (최근 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