How can I create arrays with different names using loop?
Mostra commenti meno recenti
I want to create n=1:56 arrays with names a(n), and each array contein random number.
thank you.
Risposte (1)
James Tursa
il 31 Mar 2022
Modificato: James Tursa
il 31 Mar 2022
0 voti
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:
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!