Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
Ravindrnath
Ravindrnath 2018 年 4 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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