gusucode.com > datatypes 工具箱matlab源码程序 > datatypes/+matlab/+internal/+table/numberedNames.m
function names = numberedNames(prefix,numbers,oneName) %NUMBEREDNAMES Append numeric suffix to a common base text. % Copyright 2012-2016 The MathWorks, Inc. if nargin < 3 || ~oneName % return cellstr if isempty(numbers) names = cell(1,0); else names = strcat({prefix},num2str(numbers(:),'%-d'))'; end else % return one character vector names = strcat(prefix,num2str(numbers,'%-d')); end