MATLAB: How to perform interpolation on complex data using MATLAB

complexinterpinterpolateMATLAB

I want to perform interpolation on complex data using MATLAB functions.

Best Answer

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.
Related Question