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.

 채택된 답변

John D'Errico
John D'Errico 2016년 2월 18일

0 개 추천

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

댓글 수: 2

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

2016년 2월 18일

댓글:

2016년 2월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by