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
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 Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!