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

3 visualizaciones (últimos 30 días)
A = rand(M) * 5;
B = rand(k) * -8;
z = complex(A,B);

Respuesta aceptada

Birdman
Birdman el 30 de En. de 2018
Editada: Birdman el 30 de En. de 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)

Más respuestas (0)

Categorías

Más información sobre Wireless Communications en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by