User-Defined Functions Flashcards

0
Q

type(functionname)

A

Displays the code of a function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly