MATLAB COMPILER RELEASE NOTES Guide de l'utilisateur Page 225

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 716
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 224
Mathematics
7-15
Functionality What Happens
When You
Use This
Functionality
Use This Instead Compatibility Considerations
Passing mixed
orientation vectors to
interpn:
interpn(x1,x2,...,xn,
V,
x1q,x2q,...,xnq)
Specifically, if one or
both of the following
are true:
x1,x2,...,xn are
a combination of
row and column
vectors.
x1q,x2q,...,xnq
are a combination
of row and column
vectors.
Still Runs Construct the full grid with
ndgrid first. Alternatively,
use griddedInterpolant if
you have a large data set.
Modify all instances that
pass mixed orientation
vectors to interpn. You
can modify your code in one
of two ways:
Call ndgrid to
construct the full grid
first.
[X1,X2,...,Xn]=
ndgrid(x1,x2,...,xn);
[X1q,X2q,...,Xnq]=
ndgrid(x1q,x2q,...,xnq);
Vq=
interpn(X1,X2,...,Xn,
V,
X1q,X2q,...,Xnq);
Pass the vectors to
griddedInterpolant
inside a cell array.
F=
griddedInterpolant({x1,
x2,...,xn}, V);
Vq= F({x1q,
x2q,...,xnq});
Vue de la page 224
1 2 ... 220 221 222 223 224 225 226 227 228 229 230 ... 715 716

Commentaires sur ces manuels

Pas de commentaire