CSE 7 Lecture Notes - Lecture 2: Mathworks, Equals Sign, Double-Precision Floating-Point Format

82 views2 pages

Document Summary

Command window: the space where you work in. One row or one column is a vector. Ans= answer, variable in matlab, default variable. : used by itself means all elements . Assignment statement puts a value into a variable. Variable = expression, where the equals sign is the assignment operator. A semicolon at the end of an expression suppresses output. Age=21; (nothing will show up until the next expression without a semicolon) May be followed by letters, digits, underscore. Don"t use built in functions as variable names, such as abs, sin, cos. Every expression and variable has a type. Real numbers: single, double (the default type used, stands for double precision, includes, signed numbers, decimal, and integer) The 8 and 16 refer to the number of bits, within that value there are either 1"s or 0"s. Range and type casting intmin/intmax: range of integer types.

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