Costum Functions Flashcards
(3 cards)
1
Q
How can we create a script with a function (to be defined)?
A
Click new & Select Function
2
Q
What is the basic instruction needed?
A
function [out1, out2] = FuncName(in1, in2)
Out1 = in1
Out2= in2
3
Q
Give a practical example of a function?
A
function [sqr] = sqring[num]
sqr = number * number
end