How can I create arrays with different names using loop?
Mostrar comentarios más antiguos
I want to create n=1:56 arrays with names a(n), and each array contein random number.
thank you.
Respuestas (1)
James Tursa
el 31 de Mzo. de 2022
Editada: James Tursa
el 31 de Mzo. de 2022
0 votos
Don't embed numbering into the variable names. This will make the variables hard to use downstream in your code. Use cell arrays or multidimension arrays etc. instead. See this discussion:
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!