AssignVarargin

Version 1.0.0.0 (616 octets) par Michael Robbins
it parses a parameter list. Given a set of variable names, it assigns the appropriate values to var
1,8K téléchargements
Mise à jour 27 juil. 2005

Aucune licence

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

Citation pour cette source

Michael Robbins (2024). AssignVarargin (https://www.mathworks.com/matlabcentral/fileexchange/8116-assignvarargin), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R14
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Argument Definitions dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0