1 function checkgenext(typeSpec,nPlaceHolders,varargin)
3 nVarNames=nArgs-2-nPlaceHolders;
4 nExtVars=nPlaceHolders-nVarNames;
5 varNameList=[varargin(nPlaceHolders+1:end),cell(1,nExtVars)];
6 for iVar=nVarNames+1:nPlaceHolders
7 varNameList{iVar}=inputname(2+iVar);
10 varargin{1:min(nPlaceHolders,nArgs)},...
11 'varNameList',varNameList);
function checkgenext(in typeSpec, in nPlaceHolders, in varargin)
CHECKGENEXT checks a generic condition provided by typeSpec string in the following format: 'isnumeri...