Optional function arguments
Optional function arguments with default values: optndfts
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Bill Whiten (2026). Optional function arguments (https://www.mathworks.com/matlabcentral/fileexchange/38881-optional-function-arguments), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Functions istext iscelltext, renamefields: Rename some field names in a struct, selectfields: Select specified field names from a struct
Inspired: Select points from graph: graphpoints, linfitregsel - term selection in linear regression, Greyboxbuild: complete a greybox model
General Information
- Version 3.1.1 (82.1 KB)
MATLAB Release Compatibility
- Compatible with R2016b and later releases
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 3.1.1 | Includes reference to rename fields and selectfields |
||
| 3.1.0 | Now can use char or string |
||
| 3.0.0 | Reloaded |
||
| 2.0.0 | v3.0 (2015-09-07) compatible with v2.0 and v1.0
|
||
| 1.0.0 |