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!