How do you set a variable name to a variable value?
Ältere Kommentare anzeigen
If I make a variable ( a = 'name' ), I want to set the variable name with the value of a.
ex) ( name = )
4 Kommentare
KSSV
am 6 Aug. 2021
name = 3 ;
name = 'John' ;
That's it....why you want to assign again a ? This approach is not accepted.
JIWON LEE
am 6 Aug. 2021
KSSV
am 6 Aug. 2021
John = 3 ;
This is enough right.
Stephen23
am 6 Aug. 2021
Before you force yourself into writing slow, inefficient, complex code that is difficult to debug, you should read this:
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Variables finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!