Consider the following system in complex symbolic form:
% syms ix %// or
% syms x %//?
sys(ix) = ((10+(ix)))/((20+5(ix)+(10(ix))^2+(ix)^3))
Where
ix = imaginary part
Can MATLAB symbolically compute imag(sys(jx))
and real(sys(jx))
?
syms x
sys(x) = ((10+1.*1i.*x))/(20+(5.*1i.*x)+((10.*1i.*x).^2))+((1.*1i.*x).^3);
imaginaryPart = imag(sys);
where the 1i
has been used as opposed to i
, as it should be more robust according to the documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With