gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/@tall/extractAfter.m
function s = extractAfter(str,startStr) %EXTRACTAFTER Create a string from part of a larger string. % S = EXTRACTAFTER(STR, START) % % See also TALL/STRING. % Copyright 2016 The MathWorks, Inc. narginchk(2,2); % First input must be tall string. if ~istall(str) error(message('MATLAB:bigdata:array:ArgMustBeTall', 1, upper(mfilename))); end str = tall.validateType(str, mfilename, {'string'}, 1); % Treat all inputs element-wise, wrapping char arrays if used startStr = wrapCharInput(startStr); s = elementfun(@extractAfter, str, startStr); % Output is always the same size and type as the first input. s.Adaptor = str.Adaptor; end