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