フィルターのクリア

Complex Matrix interpolation

3 ビュー (過去 30 日間)
Antonio
Antonio 2012 年 5 月 17 日
Hi all, I have a set of N, complex valued 2 dimensional matrices (dimension DxD), "M", that I want to fit with a set of N values of a parameter x. I would like to extract a function M(x). Is this possible? In the documentation I find only real-valued, non matrix interpolation.
Thanks!

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2012 年 5 月 17 日
interp1([0 1 4],[0,8+2i,6-5i],[3 3.5])
add
eg: for Z
Z = arrayfun(@(ii)randi(9)+((-1)+randi([0 1]))*randi(16)*1i,zeros(15))
interp2(Z,[1.5 3.9],[4.8,10])
after comment
Z - your matrix with complex members
example:
Z = arrayfun(@(ii)randi(9)+((-1)+randi([0 1]))*randi(16)*1i,zeros(15))
your function:
M = @(x,y)interp2(Z,x,y)
  1 件のコメント
Antonio
Antonio 2012 年 5 月 17 日
I would like to extract a function M(x) that takes in a scalar x_0 and returns a complex matrix M(x_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