필터 지우기
필터 지우기

Matlab version for input type sym in arrayfun

조회 수: 2 (최근 30일)
Thomas Ligon
Thomas Ligon 2016년 3월 17일
편집: Geoff Hayes 2016년 3월 17일
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개)

카테고리

Help CenterFile Exchange에서 Symbolic Variables, Expressions, Functions, and Preferences에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by