I tried to use griddata for interpolation of complex data (The Y vector is complex). But it seems that griddata cannot work with complex input. Is there any alternative? Thank you in advance.

 Akzeptierte Antwort

John D'Errico
John D'Errico am 18 Feb. 2016

0 Stimmen

You cannot interpolate the real and imaginary parts separately?
help real
help imag
Then put the result back together.

2 Kommentare

Stephen23
Stephen23 am 18 Feb. 2016
You can use complex to join them back together.
bni007
bni007 am 18 Feb. 2016
Thank you John. Yes I will try to do it separately.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interpolation finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 18 Feb. 2016

Kommentiert:

am 18 Feb. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by