Dimension of the workspace array

조회 수: 3 (최근 30일)
Johan Johan
Johan Johan 2018년 4월 29일
답변: Walter Roberson 2018년 4월 29일
l have this matlab code :
N=51;
f=[linspace(-1,-.18,164),linspace(-0.1,0.3,80),linspace(.38,1,124)];
d=[zeros(1,164),ones(1,80),zeros(1,124)].*exp(-1i*pi*f*(N-1)/2);
What is the method to find function have 51 x 386 complex double if f is 368 x 1 double and d is 368 x 1 complex double .

채택된 답변

Walter Roberson
Walter Roberson 2018년 4월 29일
d=[zeros(1,164),ones(1,80),zeros(1,124)].*exp(-1i*pi*f.*((1:N).'-1)/2);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by