How to determine real part of a symbolic complex number

6 visualizaciones (últimos 30 días)
Assa Mallahi
Assa Mallahi el 6 de Mayo de 2020
Comentada: Assa Mallahi el 6 de Mayo de 2020
hi..if i have a symbolic complex number like S=1+w*i . How do i get only the real part of it? i test it with "real" command, but it doesnt help..it shows (-imag(w))

Respuestas (1)

Walter Roberson
Walter Roberson el 6 de Mayo de 2020
it would have showed 1-imag(w)
This is a correct calculation, because you did not tell matlab that w is real valued.
syms w real

Categorías

Más información sobre Numbers and Precision en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by