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.

2 ビュー (過去 30 日間)
t = num2cell([FrameNumbersEvents]); n = numel(FrameNumbersEvents); out = sprintf('x%u,', 1:n); [(out)] = t{:}

採用された回答

Steven Lord
Steven Lord 2015 年 7 月 7 日
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.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVariables についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by