How do I perform interpolation on complex data using MATLAB?

10 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
I want to perform interpolation on complex data using MATLAB functions.

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
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 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by