How do you set a variable name to a variable value?
Show older comments
If I make a variable ( a = 'name' ), I want to set the variable name with the value of a.
ex) ( name = )
4 Comments
KSSV
on 6 Aug 2021
name = 3 ;
name = 'John' ;
That's it....why you want to assign again a ? This approach is not accepted.
JIWON LEE
on 6 Aug 2021
KSSV
on 6 Aug 2021
John = 3 ;
This is enough right.
Stephen23
on 6 Aug 2021
Before you force yourself into writing slow, inefficient, complex code that is difficult to debug, you should read this:
Accepted Answer
More Answers (0)
Categories
Find more on Variables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!