WK 4 Flashcards
Label the:
Output argument
Function body
Function name
Input argument
Difference between function and scripts
Function commands don’t change the workplace, but script does
What do matrices need in MATLAB?
Square brackets
What would be the output?
What is X and Y?
What do commas and semi-colons do in matrices/vectors?
Commas/ spaces separate columns
semi-colons separate rows
What would be the input?
What would be the output?
What would be the input?
what is d = a(1,3);
(b,c)
where
b = position of row
c = position of column
Get value in first row, third column
Therefore d= 6
What is a(1,3) = 60;
Set value at first row and third column to 60
What is the output?
3 = rows
2 = columns
What is the output?
What is the output?
What do colons do?
creates loops similar to for-loops