Costum Functions Flashcards

(3 cards)

1
Q

How can we create a script with a function (to be defined)?

A

Click new & Select Function

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

What is the basic instruction needed?

A

function [out1, out2] = FuncName(in1, in2)

Out1 = in1
Out2= in2

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

Give a practical example of a function?

A

function [sqr] = sqring[num]

sqr = number * number

end

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