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

2 Ansichten (letzte 30 Tage)
VISHALI V
VISHALI V am 30 Jan. 2018
Bearbeitet: James Tursa am 30 Jan. 2018
A = rand(M) * 5;
B = rand(k) * -8;
z = complex(A,B);

Akzeptierte Antwort

Birdman
Birdman am 30 Jan. 2018
Bearbeitet: Birdman am 30 Jan. 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)

Weitere Antworten (0)

Kategorien

Mehr zu Wireless Communications finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by