function
Programming
Define a named function. The function body can contain any SimLab statements. Single output uses "function out = name(...)". Multiple outputs use "[a, b] = name(...)". Functions without output use "function name(...)".
Syntax
function out = name(args) ... end
function [a, b] = name(x, y) ... end
function name(args) ... end
Examples
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab