curvefitting of complex number

1 回表示 (過去 30 日間)
Supreeth D K
Supreeth D K 2022 年 11 月 3 日
回答済み: Harshit Gupta 2022 年 11 月 15 日
I get following error when i use Lsqcurvefit
Warning: Imaginary parts of complex X and/or Y arguments ignored.
> In myfun (line 11).
I want both real and imaginary parts
  1 件のコメント
KSSV
KSSV 2022 年 11 月 3 日
Run the function seperately for real and imaginary parts.

サインインしてコメントする。

採用された回答

Harshit Gupta
Harshit Gupta 2022 年 11 月 15 日
Hi Supreeth,
As per my understanding, you are getting the following warning:
Warning: Imaginary parts of complex X and/or Y arguments ignored.
And you want both real and imaginary parts to be included in your plot, while using "lsqcurvefit".
Please refer below to resolve your query:

その他の回答 (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