Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Pls help in solving the below question

4 visualizaciones (últimos 30 días)
kratika kanherkar
kratika kanherkar el 15 de Ag. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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.

Respuestas (2)

Walter Roberson
Walter Roberson el 15 de Ag. de 2016
See randi() and cell arrays.

G Newton
G Newton el 15 de Ag. de 2016
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 comentario
Walter Roberson
Walter Roberson el 15 de Ag. de 2016
The size will not be right for that randi()

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by