From the exercises in a book I am using to learn MATLAB:
Given x = [3 15 9 12 -1 0 -12 9 6 1], provide the command(s) that will
A) set the values of x that are positive to zero
B) set values that are multiples of 3 to 3 (rem will help here)
C) multiply the values of x that are even by 5
D) extract the values of x that are greater than 10 into a vector called y
E) set the values in x that are less than the mean to zero
F) set the values in x that are above the mean to their difference from the mean