5

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))?

Adriaan
  • 17,741
  • 7
  • 42
  • 75
salam
  • 229
  • 1
  • 4

1 Answers1

5
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.

Adriaan
  • 17,741
  • 7
  • 42
  • 75