You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
ASSIGNVARARGIN parses a parameter list. Given a set of variable names,
ASSIGNVARARGIN assigns the appropriate values to variables.
foo('green',5);
and in foo, you call ASSIGNVARARGIN:
AssignVarargin({'Color','Charm','Strangeness'});
ASSIGNVARARGIN will create a variable Color, with the value 'green', a
variable Charm, with the value 5, and a variable Strangness, with the
value NaN.
See also varargout nargin nargout inputname function lists paren
CatOrSplitFiles CheckerboardPlot varargin nargin
assignin evalin
Key words varargout nargin nargout inputname function lists paren
CatOrSplitFiles CheckerboardPlot parameter workspace
assign input output arguments
Cite As
Michael Robbins (2026). AssignVarargin (https://uk.mathworks.com/matlabcentral/fileexchange/8116-assignvarargin), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (616 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |