Complete the code to multiply two numbers and store the result.
result = 5 [1] 3;
The * operator multiplies two numbers in MATLAB.
Complete the code to subtract 4 from 10.
difference = 10 [1] 4;
The - operator subtracts the right number from the left.
Fix the error in the code to divide 20 by 5.
quotient = 20 [1] 5;
The / operator divides the left number by the right number in MATLAB.
Fill both blanks to create a vector with elements from 1 to 10, stepping by 2.
vec = [1]:[2]:10;
The colon operator start:step:end creates a vector from start to end with the given step size.
Fill all three blanks to create a structure with fields 'name', 'age', and 'score'.
student = struct('[1]', 'Alice', '[2]', 20, '[3]', 95);
The struct function creates a structure with named fields. The field names must be strings.
