How do I perform interpolation on complex data using MATLAB?
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to perform interpolation on complex data using MATLAB functions.
Risposta accettata
MathWorks Support Team
il 27 Giu 2009
The GRIDDATA function can be used to interpolate complex Z-data. Consider the following example:
xi = [2;3;-1;-5;1];
yi = [1;2;-4;-1;-2];
zi = [5+2j;1-j;2+4j;-7-3j;-1+6j];
xj = [-1;2;3];
yj = [3;-2;4];
zj = griddata(xi,yi,zi,xj,yj,'nearest')
Here, you can use the nearest neighbor method, using the 'nearest' argument. For more information on GRIDDATA, type
doc griddata
at the MATLAB prompt.
Note that the GRIDDATA function cannot handle complex X and Y-data.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Interpolation 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!