ENGR 101 Lecture Notes - Lecture 8: Scatter Plot, Pie Chart, Bar Chart

40 views3 pages

Document Summary

Scatter and plot allow you to plot multiple sets of datajust add it into the parenthesis (ex. plot(x, sin(x), x, cos(x))) Can plot functions by making y=f(x) (ex. y=sin(x)) To create grouped bars, use a matrix for the 2nd input where each row corresponds to a label. Histogram - visualization of the frequency of occurrence for certain values in a dataset. Use mean(mean(a)) to find the mean of the total matrix mean(a) - returns the column-by-column mean of a matrix median(a) - computes the median of a matrix unique(a) - creates an array of unique elements in a. Cell array - use {} to create an array of cells," but each cell can be any datatype. Csv - file is a table separated with commas deblank(x) - gets rid of blank spaces in a string cellarray{1,2} - test(1,2) = {[1,2,3]} - assigns 123 vector into the position in test.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents