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