what is a function
a file with the same name as the function, followed by the .m extension.
what are input arguments?
variables you pass to the function
what are output arguments
the results the function returns
how would you write a function?
function [output1, output2, …] = functionName(input1, input2, …)
- function body
- code
end