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.

 Réponse acceptée

John D'Errico
John D'Errico le 18 Fév 2016

0 votes

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

2 commentaires

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interpolation dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by