How do you set a variable name to a variable value?
显示 更早的评论
If I make a variable ( a = 'name' ), I want to set the variable name with the value of a.
ex) ( name = )
4 个评论
KSSV
2021-8-6
name = 3 ;
name = 'John' ;
That's it....why you want to assign again a ? This approach is not accepted.
JIWON LEE
2021-8-6
KSSV
2021-8-6
John = 3 ;
This is enough right.
Stephen23
2021-8-6
Before you force yourself into writing slow, inefficient, complex code that is difficult to debug, you should read this:
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Variables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!