Piecewise defined function builder

Constructs a callable function that applies different definitions based on supplied conditions.

Download
Download

You are now following this Submission

Cite As

Toby Driscoll (2026). Piecewise defined function builder (https://nl.mathworks.com/matlabcentral/fileexchange/15851-piecewise-defined-function-builder), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Piecewise functions

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0

Improved documentation on overlapping definitions and on complex inputs.

Download