Matlab - functions Flashcards

1
Q

what is a function

A

a file with the same name as the function, followed by the .m extension.

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

what are input arguments?

A

variables you pass to the function

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

what are output arguments

A

the results the function returns

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

how would you write a function?

A

function [output1, output2, …] = functionName(input1, input2, …)
- function body
- code
end

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