curvefitting of complex number

1 visualización (últimos 30 días)
Supreeth D K
Supreeth D K el 3 de Nov. de 2022
Respondida: Harshit Gupta el 15 de Nov. de 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 comentario
KSSV
KSSV el 3 de Nov. de 2022
Run the function seperately for real and imaginary parts.

Iniciar sesión para comentar.

Respuesta aceptada

Harshit Gupta
Harshit Gupta el 15 de Nov. de 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:

Más respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by