MATLAB: How to generate a complex matrix of different rows and column

wireless communication

A = rand(M) * 5;
B = rand(k) * -8;
z = complex(A,B);

Best Answer

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)
Related Question