MatrixBerryCore
checkgenext.m
Go to the documentation of this file.
1 function checkgenext(typeSpec,nPlaceHolders,varargin)
2 nArgs=nargin;
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);
8 end
9 mxberry.core.checkmultvar(typeSpec,nPlaceHolders,...
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...