Create variable with name from other variable string
Mostra commenti meno recenti
Hello,
My question is, if i have a string variable, coulf i assing that string as a name for a new variable?
For example, if i have
name_string = 'name_var';
can i have
name_var = 5;
somehow wihouth me writing the actual code?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Variables 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!