chapter 2 Flashcards
variable
holds an item, item can be changed but must be defined before running calculations
interpreter
negotiates with computing system to allocate memory location for new variable
assignment operator
= sign
base workspace
stores variables created at command line
identifier
variable’s name
- start w/ letter
- case sensitive
- no spaces
keywords that CANT BE USED AS IDENTIFIER
break
case
catch
otherwise
parlor
classdef
continue
else
return
spmd
etc
camel case
capitalizing first letter of each word
data type
specific class each MatLab variable has that indicates type of data
numeric variable
stores number
integer number
positive or negative number that isn’t a decimal
- useful when counting finite items
- used when creating/assessing array
array
collection of variables
- stored with 1, 2, 4, 8 bytes
signed value
positive and negative integers
unsigned value
only positive integers
real number
positive or negative number that may have decimal (Matlab default)
range
indication of numbers that can be represented smallest to largest
unsigned 8bit range
0 to 255
signed 8bit range
-127 to 128
int
signed integer
uint
unsigned integer
int8
signed integer in 8 bits
floating point numbers
another name for real numbers (have decimal)
normalized scientific notation
scientific notation with one number before the decimal point