https://in.mathworks.com/help/matlab/ref/narginchk.html
narginchk - Validate number of input arguments - MATLAB
This MATLAB function validates the number of input arguments in the call to the currently executing function.
validatenumberinputargumentsmatlab
https://it.mathworks.com/matlabcentral/answers/211363-narginchk-and-varargin-in-matlab
narginchk and varargin in MATLAB - MATLAB Answers - MATLAB Central
narginchk and varargin in MATLAB . Learn more about matlab function
matlabanswerscentral