Swap the first and last columns (★★)
(copy of Prob 19)
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becom...
5 years ago
Solved
Sum of elements of a vector (★★★)
Given any vector x = [x1, x2, x3, ... xn], compute the sum of its elements.
Thus, if x = [ 1 3 -2 5 ], then the sum of its el...
5 years ago
Solved
Median computation (★)
Given a vector of values, compute the median. The median is defined as the middle value in a set of *sorted* data. Thus, if
...
5 years ago
Solved
Variance computation (★)
Given a vector x with several values, compute the variance, whose formula is given by:
<<https://i.imgur.com/Wg95KBE.gif>>
...
5 years ago
Solved
Mo money, mo math #2! (★★★)
(adapted from Prob 9 Cody team)
You have a matrix for which each row is a person and the columns represent the number of quar...