I want to assign a complete array of unknown length of values each to a separate variable. I'm using the 'deal' function now, but an expression can't be inserted in that function.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
S.Wijn
am 7 Jul. 2015
Bearbeitet: Stephen23
am 19 Jun. 2019
t = num2cell([FrameNumbersEvents]); n = numel(FrameNumbersEvents); out = sprintf('x%u,', 1:n); [(out)] = t{:}
1 Kommentar
Akzeptierte Antwort
Steven Lord
am 7 Jul. 2015
DON'T DO THIS. See question 1 in the Programming section of the FAQ for an explanation why this is a Bad Idea and alternatives you should use instead.
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!