Can griddedInterpolant use different extrapolation methods per dimension?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Michael Boutros
il 17 Feb 2021
Risposto: Walter Roberson
il 17 Feb 2021
Is it possible to specify different extrapolation methods per dimension of a griddedInterpolant? For example, from the Matlab documentation:
[X,Y] = meshgrid(-2:0.75:2);
R = sqrt(X.^2 + Y.^2)+ eps;
V = sin(R)./(R);
[Xq,Yq] = meshgrid(-3:0.2:3);
Vq = interp2(X,Y,V,Xq,Yq,'cubic',0);
Would it be possible to set "0" for the first dimension (X) and "linear" for the second "y"? From the documentation, I know that the direct answer is no, but I'm wondering if anyone has ideas about how best to accomplish this.
0 Commenti
Risposta accettata
Walter Roberson
il 17 Feb 2021
No.
The associated code is strictly pcode (.p) or built-in. There is no way to examine the implementation.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!