【发布时间】:2014-07-21 22:07:51
【问题描述】:
我试图将复数的实部乘以标量,而虚部保持不变。
例如x= a + bi 与c 相乘后得到y= ca + bi。
对程序有什么建议吗?
【问题讨论】:
-
y=real(x)*c+imag(x)? -
不。没用。
h = 1 + 2i>>y=real(h)*2+imag(h)y = 4 -
在我的回答中,不要忘记将 imag(x) 与 'i' 相乘!
-
你确定吗?我试过了,但它没有给我我写的正确表格。
-
是的,我确定:
h = 1 + 2 * i>>y = real(h) * 2 + imag(h) * i(y = 2 + 2 * i
标签: matlab math linear-algebra complex-numbers