第1个回答 2017-05-10
function
Declare function name, inputs, and outputs
collapse all in page
Syntax
function [y1,...,yN] = myfun(x1,...,xM)
example
Description
example
function [y1,...,yN] = myfun(x1,...,xM) declares a function named myfun that accepts inputs x1,...,xM and returns outputsy1,...,yN. This declaration statement must be the first executable line of the function. Valid function names begin with an alphabetic character, and can contain letters, numbers, or underscores.