Looping to create multiple variables?
38 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Amos Tan
el 13 de Oct. de 2017
Comentada: Amos Tan
el 14 de Oct. de 2017
I would like to run the following code 50 times, each time saving the output into a new variable (eg. s1, s2, s3,...,s50)
s = [reshape(randperm(32),[],1),randi(8,32,1)];
How would I do that?
Thank you! (sorry if this is a very trivial question, I'm new)
2 comentarios
Respuesta aceptada
Más respuestas (1)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!