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!