The following code outputs a value for a and b with respect to the imaginary number i but the output is not fully simplified with the complex and real part separately factored. Is there a way to modify the code so the real and imaginary parts are separate?
syms X Y Q t w v a b z c N theta m L g eq1 = b-a == 10*(cosd(45)+i*sind(45)); eq2 = 3 == (a-b)/4+a*i/3 + b/(6*i)+b/12; sol = solve([eq1 eq2], [b a]); %[a b c] = [theta' theta'' x'']
sol_b = simplify(sol.b)solb = sol.b
Best Answer