ENGR 121 Study Guide - Final Guide: While Loop, Substring, Standard Deviation

126 views6 pages

Document Summary

Nan = not a number (i or j) = 1. >>x=2:1:7 generates an output [2 3 4 5 6 7] 2=starting number (min), 1=increment, 7=ending number (max) Linspace (linearly spaced vector (similar to the colon operator) A=min, b=max, c=number of elements in the vector (will be equally spaced between the range of a to b) Will find every value for whom"s element equals 1 in the logical vector. If you are doing an element by element. The period tells matlab to perform operation element by element. This just gives you a blank canvas for plotting. B+ means symbols on plot are blue +"s . Plotting multiple functions on the same plot. Extra add ons legend( sin", cos") gives plot a legend. Xlabel( x") gives x axis label a label. Ylabel( cos or sin") gives y axis label a label title( _____") gives plot a title. Strings contain information (functions such as vectors or arrays of characters)

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

Related Documents