Outputting to string
Ältere Kommentare anzeigen
I want to do this, essentially:
for i = 1:3
['variable_' int2str(i)] = function(i);
end
How do I tell MATLAB to create a series of variables as outputs? It isn't good enough to output to variable(i) as the output is a series of matrices and vectors, not a single value.
Akzeptierte Antwort
Weitere Antworten (1)
Oleg Komarov
am 27 Jan. 2011
3 Stimmen
Oleg
Kategorien
Mehr zu Variables finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!