Default arguments

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


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 (, 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!