How do you use ndgrid

15 vues (au cours des 30 derniers jours)
dfsalj
dfsalj le 21 Août 2017
Modifié(e) : dfsalj le 21 Août 2017
Answers shows how to use ndgrid to interpolate for a given value.

Réponses (1)

Andrei Bobrov
Andrei Bobrov le 21 Août 2017
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);

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by