Solve the complex equations
显示 更早的评论
2(x + j y) = 6− j 3
I coded it like:
syms x y
a=2*(x+y*j)==6-3j;
vpasolve(a,[x,y])
ans=
x : 3.0 - 1.5i
y : 0
but the result should come out as
x = 3.0 and
y = -1.5
采纳的回答
更多回答(1 个)
Image Analyst
2022-10-9
What if you just add on
x = real(x)
y = imag(x)
1 个评论
Torsten
2022-10-9
It's just by chance that this works for the above example.
类别
在 帮助中心 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!