milleratotago/Extra​ctNameVal

バージョン 1.0.0.0 (4.4 KB) 作成者: Jeff Miller
Tools for passing optional parameters and name/value pairs in MATLAB.
ダウンロード: 40
更新 2018/1/4

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.

引用

Jeff Miller (2024). milleratotago/ExtractNameVal (https://github.com/milleratotago/ExtractNameVal), GitHub. 取得済み .

MATLAB リリースの互換性
作成: R2015b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersEntering Commands についてさらに検索

Community Treasure Hunt

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

Start Hunting!

GitHub の既定のブランチを使用するバージョンはダウンロードできません

バージョン 公開済み リリース ノート
1.0.0.0

この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。