Decomposing a 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 evaluate imag(sys(jx)) and real(sys(jx)) ?

+5
source share
1 answer
 syms x sys(x) = ((10+1.*1i.*x))/(20+(5.*1i.*x)+((10.*1i.*x).^2))+((1.*1i.*x).^3); imaginaryPart = imag(sys); 

where 1i used as opposed to i , as it should be more reliable according to the documentation.

+5
source

Source: https://habr.com/ru/post/1242441/


All Articles