How do I perform interpolation on complex data using MATLAB?
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I want to perform interpolation on complex data using MATLAB functions.
Respuesta aceptada
MathWorks Support Team
el 27 de Jun. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Interpolation en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!