Default arguments

version 1.6.0.0 (1.24 KB) by Bas-Jan
Set default values for optional function input.

243 Downloads

Updated 26 Apr 2013

View License

Set default arguments for use in function, without having to code the switch-case blocks. Code is quite trivial, but it saves me some time coding.

Cite As

Bas-Jan (2022). Default arguments (https://www.mathworks.com/matlabcentral/fileexchange/41497-default-arguments), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
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!