symbol - How to return the real/imaginary part of a symbolic polynomial in MATLAB? -


given polynomial such (a+b*i)*c+i, a, b, c defined symbolic elements represent 3 real values , i imaginary unit, how return real part , imaginary part of polynomial?

a = sym('a','real'); b = sym('b','real'); c = sym('c','real'); expand(real((a+b*1i)*c+1i)) 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -