ENGR 101 Lecture Notes - Lecture 3: Matlab, Standard Deviation
Document Summary
The min and max funcitons can be used to find the smallest or largest elements in a vector. They too work in each column first and must be applied twice for a whole matrix. They return both the value found and the index where it was found. Sort function uses a compound return to give us both a sorted version of the vector and a vector of sorted indices. The mean function return the column-by-column mean of a matrix. The median function computes the median of a dataset. It works with arrays in the same way as the mean function. The median of a dataset is the number that would appear in the middle if the numbers were sorted. The unique function takes an array as an input and returns a vector of its unique elements (with duplicates removed). Use "stable" argument to preserve the original ordering. The mode of a dataset is the value that occurs most often.