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

3 ビュー (過去 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 Center および File ExchangeWireless Communications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by