Real part of complex number - MATLAB real
www.mathworks.com › help › symbolicsyms a x y real (a + 2) real (x + y*i) ans = real (a) + 2 ans = real (x) - imag (y) If you assign numeric values to these variables or specify that these variables are real, real can extract the real part of the expression: syms a a = 5 + 3*i; real (a + 2) ans = 7. syms x y real real (x + y*i) ans = x. Clear the assumption that x and y are real ...