MatrixBerryCore
checkgen.m
Go to the documentation of this file.
1 function checkgen(x,typeSpec,varargin)
2 if isempty(varargin)
3  reg=varargin;
4  nCallerStackStepsUp=1;
5 else
6  [reg,prop]=mxberry.core.parseparams(varargin,...
7  {'nCallerStackStepsUp'});
8  if isempty(prop)
9  nCallerStackStepsUp=1;
10  else
11  nCallerStackStepsUp=prop{2};
12  end
13 end
14 mxberry.core.checkvar(x,typeSpec,reg{:},'nCallerStackStepsUp',...
15  1+nCallerStackStepsUp);
function checkgen(in x, in typeSpec, in varargin)
CHECKGEN checks a generic condition provided by typeSpec string in the following format: 'isnumeric(x...