curvefitting of complex number

1 Ansicht (letzte 30 Tage)
Supreeth D K
Supreeth D K am 3 Nov. 2022
Beantwortet: Harshit Gupta am 15 Nov. 2022
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 Kommentar
KSSV
KSSV am 3 Nov. 2022
Run the function seperately for real and imaginary parts.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Harshit Gupta
Harshit Gupta am 15 Nov. 2022
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:

Weitere Antworten (0)

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by