File Exchange

image thumbnail


version 1.1 (1.08 MB) by Marcin Konowalczyk
Parse varargin cells to option structures


Updated 08 Jun 2021

From GitHub

View Version History

View license on GitHub

This function parses a content of a cell with `{key,value,...}` pairs (usually `varargin`) into an option with fields `opt.key = value`. It allows one to specify input specification and supply validator functions. This is a utility function based on Matlab's `inputParser`.

Cite As

Marcin Konowalczyk (2021). varargin2opt (, GitHub. Retrieved .

Comments and Ratings (1)

Chang hsiung

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!