Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
How can write a number 0.5 repetitively into a complex double of size 401x1 complex double?

Answers (1)

Walter Roberson
Walter Roberson on 22 Apr 2018
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.

This question is closed.

Community Treasure Hunt

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

Start Hunting!