milleratotago/Extra​ctNameVal

Tools for passing optional parameters and name/value pairs in MATLAB.
40 download
Aggiornato 4 gen 2018

A simple, handy function that you call to help your function process each of its optional 'NAME' and 'NAME'/value pair arguments (that is, call this function once for each of your optional arguments). No other set-up is required except for calling this function. You simply pass the function: (o) the name of the parameter it should check for, (o) the default value to be returned if that parameter is not specified, (o) the values of varargin passed to your function, and (o, optionally) a check on the value specified for the argument. This function returns the value given in the 'NAME'/value pair if one is found, and it returns your default otherwise.

Cita come

Jeff Miller (2024). milleratotago/ExtractNameVal (https://github.com/milleratotago/ExtractNameVal), GitHub. Recuperato .

Compatibilità della release di MATLAB
Creato con R2015b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Entering Commands in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Le versioni che utilizzano il ramo predefinito di GitHub non possono essere scaricate

Versione Pubblicato Note della release
1.0.0.0

Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.
Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.