User-Defined Functions Flashcards
0
Q
type(functionname)
A
Displays the code of a function.
1
Q
function output= functionname(input arguments) %Comments describing function
Statements to be executed
end
A
The format for writing a user defined function.
Help functionname will display the comments.
Function output is stored in the default variable, ans