Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Decomposition of complex system using MATLAB

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

like image 222
salam Avatar asked Feb 06 '16 14:02

salam


1 Answers

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.

like image 61
Adriaan Avatar answered Sep 30 '22 14:09

Adriaan