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

3 visualizzazioni (ultimi 30 giorni)
A = rand(M) * 5;
B = rand(k) * -8;
z = complex(A,B);

Risposta accettata

Birdman
Birdman il 30 Gen 2018
Modificato: Birdman il 30 Gen 2018
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)

Più risposte (0)

Categorie

Scopri di più su Wireless Communications in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by