Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

1 visualizzazione (ultimi 30 giorni)
How can write a number 0.5 repetitively into a complex double of size 401x1 complex double?

Risposte (1)

Walter Roberson
Walter Roberson il 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.

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by