ECOR 1010 Lecture Notes - Lecture 17: Dot Product, Right-Hand Rule, Linear Algebra

43 views8 pages

Document Summary

Follow commands when you do not want the output to be printed to the screen. In basic terms, semicolon = do not output . ** if no variable assigned (ie. to 1+1 ), then it is assigned to ans. You do not need to initialize variables (no need to assign data types) matlab does this automatically. There are many different types of variables, such as: They can be multidimensional, and some examples of this include: ** use the = sign to define variables. ** as you can see, comments can be initiated with % . Comments are encouraged, and are a must in the professional world. As seen above, the command for displaying the contents of any variable is. This is very similar to the print command in many programming languages. () are used to denote order of operations (bedmas) or for functions. () used to denote elements of a vector or matrix. () used to enclose arguments of functions:

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