フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Pls help in solving the below question

4 ビュー (過去 30 日間)
kratika kanherkar
kratika kanherkar 2016 年 8 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Generate 10,000 discrete random variables uniformly distributed in the set {1,2,3,4}. Assign each outcome in this set to one of the signals {(1,1),(1,-1),(-1,1),(-1,-1)}. the sequence of discrete random variables then produce sequence of 10,0000 signal points X.

回答 (2 件)

Walter Roberson
Walter Roberson 2016 年 8 月 15 日
See randi() and cell arrays.

G Newton
G Newton 2016 年 8 月 15 日
mygeneration=randi(4,1000);
thissig=your signal;
make another cell by reshaping(thissin,size(mygernation))
for i=1=size(mygeneration,2)
%%here try to assing by using for loop
end
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 8 月 15 日
The size will not be right for that randi()

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by