how to generate a complex matrix of different rows and column?

조회 수: 2 (최근 30일)
VISHALI V
VISHALI V 2018년 1월 30일
편집: James Tursa 2018년 1월 30일
A = rand(M) * 5;
B = rand(k) * -8;
z = complex(A,B);

채택된 답변

Birdman
Birdman 2018년 1월 30일
편집: Birdman 2018년 1월 30일
One approach:
a=5*rand(15,1);
b=-8*rand(15,1);
%creation
Comp=repmat(complex(a,b),1,3);
%%shuffle
Comp(:,2)=Comp(randperm(size(Comp,1)),2)
Comp(:,3)=Comp(randperm(size(Comp,1)),3)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by