CSE 7 Lecture Notes - Lecture 3: Character Encoding, Exclusive Or, Truth Table
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.