Chapter 2 Quiz Flashcards
Vector
An array with only 1 dimension
(can be a row or a column)
Matrix
An array with 2 or more dimensions
Array
The fundamental unit of data in any MATLAB program
Scalar
An array with only one row and one column
A MATLAB __________ is a region of memory containing an array, which is known by a user-specified name.
Variable
The contents of an array may be used or modified at any time by including its name in an appropriate MATLAB command
True
The MATLAB language is case sensitive
True
Individual data values within an array are accessed by including
The name of the array followed by subscripts in parentheses, which identify the row and column of a particular value.
Besides separating the rows in an array, the semicolon has another special purpose in MATLAB, which is to:
Suppress the automatic echoing of values in the command window that occurs when an expression is evaluated.
It is important to include a__________ in the header of any program you write. It lists the definition of each variable used in a program.
Data dictionary
What operator specifies a whole series of values by specifying the first value in the series, the stepping increment, and the last value in the series.
Colon operator
It is possible to promote a user and initialize a variable with data typed directly using the_____ function.
Input function displays a prompt string in the command window and then waits for the user to type in a response.
MATLAB allocates the first column in memory, then the second, then the third, etc., until all of the columns have been allocated. MATLAB always allocates array elements in _______ _______ order.
Column major
Can arrays be multidimensional in MATLAB by having more than rows and columns?
Yes
Can the default MATLAB format for displaying scientific notation be changed?
Yes, from the main MATLAB window menu, or using the format command.
Does ii = ii + 1 make sense as a statement in MATLAB?
Yes
a.*b
Element-by-element multiplication of an and b.
A + b
Matrix addition
Exact location in matrix 1 plus exact location in matrix b
a.*b
Element by element array multiplication
Exact location in a multiplied by exact location in b