1/32
Looks like no tags are added yet.
who
lists all variables in workspace
whos
lists all variables in workspace, with sizes and types
ans
returns most recent answer
byte
amount of computer memory required for one character
8
1 byte is equivalent to __ bits (how many?)
1×1
size of a scalar variable
double
This variable class means that the variable holds numeric values as double-precision floating point
floating-point
It means the computer can represent numbers with decimal/fractional parts and across a huge range of sizes
Array Editor
With this tool, you can view and even change the values of workspace variables
Integers
A fundamental MATLAB data type with examples:
int8 / uint8
int16 / uint16
int32 / uint32
int64 / uint64
floating point numbers
A fundamental MATLAB data type with examples:
single
double
double
what is the default variable type for numeric variables?
32 bits / 4 bytes
number of bits/bytes in a single variable type
64 bits / 8 bytes
number of bits/bytes in a double variable type
Complex Numbers
A fundamental MATLAB data type with examples:
double for real part
double for imaginary part
Characters
A fundamental MATLAB data type with examples:
‘a’
‘b’
‘c’
Strings
A fundamental MATLAB data type with examples:
“Hello”
“Konnichiwa”
“Kamusta”
Vector
a special type of matrix, having only one row or one column
lists or arrays
Vectors are called ____ or ____ in other programming languages
vector
generally refers to the one-dimensional (1D) array form
matrix
generally refers to the two-dimensional (2D) array form
linspace
This function can be used to initialize a vector of equally spaced values (evenly spaced by addition)
logspace
This function can be used to generate logarithmically spaced data (evenly spaced by multiplication)
logspace
This function produces a set of points with an interval between them that increases linearly with y
Apostrophe (‘)
The symbol that is often used in MATLAB to indicate the transpose
Matrix
it may be thought of as a table consisting of rows and columns
16
On computers using standard floating-point arithmetic, numbers are represented to approximately how many significant decimal digits?
eps
The relative accuracy of numbers is given by this function, which is defined as the distance between 1.0 and the next largest floating-point number.
converted to double precision using the double function
Before mathematical operations can be performed on such types, they must be _____________.
both vectors must be the same size
When array operations are applied to two vectors, what condition must be met?
sum(a .* b)
What statement/code will find the scalar product (dot product) of a and b?
expression
It is a formula consisting of variables, numbers, operators, and function names.
statements
they are frequently of the form:
variable = expression
as in:
s=u t-g/2 t .^ 2;