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 (최근 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 CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by