Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
How can write a number 0.5 repetitively into a complex double of size 401x1 complex double?

Respuestas (1)

Walter Roberson
Walter Roberson el 22 de Abr. de 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.

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by