How do I perform interpolation on complex data using MATLAB?
3 views (last 30 days)
Show older comments
I want to perform interpolation on complex data using MATLAB functions.
Accepted Answer
MathWorks Support Team
on 27 Jun 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 Comments
More Answers (0)
See Also
Categories
Find more on Interpolation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!