Nargin Complete
Version 1.3.0.0 (2.69 KB) by
Etienne Combrisson
Managed input arguments of Matlab functions.
The NarginComplete function can be used to manage input arguments. Some functions need necessary input variables and optionnal variables, with automatic default values.
You can create this kind of function :
NarginExample(arg1,arg2,'arg4',arg4,'arg3',arg)
- arg1 & arg2 are necessary inputs.
- arg3 & arg4 are optionnal inputs. The order doesn't matter and you can associated default values to your input.
NarginComplete should be compatible with any kind of variables.
Cite As
Etienne Combrisson (2026). Nargin Complete (https://www.mathworks.com/matlabcentral/fileexchange/50654-nargin-complete), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Argument Definitions in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
