variable to output name
조회 수: 2 (최근 30일)
이전 댓글 표시
name = 'adams'
c = 2x+4
I would like the value of "name" to be the variable for c. Therefore, instead of:
c = 2x+4
it would be:
adams = 2x+4
채택된 답변
Azzi Abdelmalek
2013년 11월 1일
a=[2 4 5];
assignin('base','adams',a)
댓글 수: 1
Azzi Abdelmalek
2013년 11월 1일
But I don't see why it's important to change the name of your variable?
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!