Matlab version for input type sym in arrayfun
1 次查看(过去 30 天)
显示 更早的评论
In what version did Matlab start supporting input type sym in an arrayfun? I am creating a plot and the tick labels are in a symbolic vector (e.g. 1x11 sym). In R2008a, the last line of this code creates error Unsupported ARRAYFUN input type: sym. Now I would like to wrap the code in "if verLessThan".
% The next 4 lines are for Matlab R2008a.
ticklabels=char(paramDisplay(1));
for iParam=2:size(paramDisplay,2)
ticklabels= char(ticklabels, char(paramDisplay(iParam)));
end
% The next 1 line is for Matlab 20015b.
% ticklabels=arrayfun(@char,paramDisplay,'UniformOutput',false);
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Special Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!