ENGR 101 Lecture Notes - Lecture 3: Matlab, Standard Deviation

20 views3 pages
7 Aug 2018
School
Department
Course

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents