How do you set a variable name to a variable value?
Mostrar comentarios más antiguos
If I make a variable ( a = 'name' ), I want to set the variable name with the value of a.
ex) ( name = )
4 comentarios
KSSV
el 6 de Ag. de 2021
name = 3 ;
name = 'John' ;
That's it....why you want to assign again a ? This approach is not accepted.
JIWON LEE
el 6 de Ag. de 2021
KSSV
el 6 de Ag. de 2021
John = 3 ;
This is enough right.
Stephen23
el 6 de Ag. de 2021
Before you force yourself into writing slow, inefficient, complex code that is difficult to debug, you should read this:
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Variables 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!