Info

此问题已关闭。 请重新打开它进行编辑或回答。

How do I write the number 0.5 into a complex double of size <401x1 complex double>

1 次查看(过去 30 天)
How can write a number 0.5 repetitively into a complex double of size 401x1 complex double?

回答(1 个)

Walter Roberson
Walter Roberson 2018-4-22
A = complex(0.5 * ones(401,1));

Note: when you use this in an expression, if there are no complex components in the result of the expression, then the complex component will be dropped.

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by