variable to output name
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Leyon
am 1 Nov. 2013
Bearbeitet: Matt J
am 1 Nov. 2013
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
Akzeptierte Antwort
Azzi Abdelmalek
am 1 Nov. 2013
a=[2 4 5];
assignin('base','adams',a)
1 Kommentar
Azzi Abdelmalek
am 1 Nov. 2013
But I don't see why it's important to change the name of your variable?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Whos finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!