how can replace randi instead randint?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I need help ,please!
0 comentarios
Respuestas (1)
Star Strider
el 24 de Ag. de 2019
‘Replace all instances of randint with randi.’
2 comentarios
Walter Roberson
el 24 de Ag. de 2019
That particular use of randint() is a bit unusual. It would translate to
rng(123);
sts_seq = randi([0 1], 1, length(SC_Position)/2) .* 2 - 1;
With 0 or 1 being multiplied by 2 and add 1, then the results would be either -1 or +1.
Star Strider
el 24 de Ag. de 2019
@Walter — Thank you!
I don’t have the Communications Toolbox, so I have no experience with it.
Ver también
Categorías
Más información sobre Logical 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!