필터 지우기
필터 지우기

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