CSE 7 Lecture Notes - Lecture 3: Character Encoding, Exclusive Or, Truth Table

43 views2 pages

Document Summary

Floor means rounding towards the floor or towards negative infinity. Round goes to the nearest integer, . 5 1. Generates uniformly distributed random real numbers in open interval from 0 to 1 (noninclusive of 0 and 1) and rand*n (generates random numbers on a scale of 0 to. Called with no arguments returns one real random # Called with two arguments, returns matrix of random numbers i. e. rand(1,3) [0. 8147 0. 9058 0. 1270] Can convert a character into its integer equivalent. Strings hello and how are you". Resulting type for logical expressions: 1 for true, 0 for false. || or for scalar only needs one to be true for it to return true. && and for scalars both need to be true to return true. ~ not means the opposite so ~1 0 or ~0 1. Confusing format of assignment statement (make sure the variable name is always on the left) Forgetting to use parentheses to mass an argument to a function.

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