EGR 1400 Exam 3 Oakland University | UPDATED Questions with
100% Verified Answers
Question:
Table
Answer:
A rectangular array of data
Question:
script file
Answer:
a sequence of MATLAB commands also called
program (also called M-files)
Question:
- Must begin with a letter
- Can be up to 63 characters long (31 in MATLAB 6)
- Can contain letters, digits, and the underscore characters -
MATLAB is case sensitive
- No space is allowed
- No use of built-in functions
Answer:
Rules about variable names:
Question:
Array
Answer:
a fundamental form that MATLAB uses to store and manipulate data
Question:
An array
Answer:
a list of numbers arranged in rows and/or columns
,Question:
characters (strings)
Answer:
In addition to arrays of numbers, arrays in MATLAB can be made of a list of
Question:
True
Answer:
Tables can be usually converted to arrays
Question:
True
Answer:
In MATLAB a vector is created by assigning the elements of the vector to a variable
Question:
- By known list of numbers (row, column) or functions
- By specifying the first, the spacing, and the last term (with or
without brackets, forward and backward)
- By specifying the first and last terms, and the number of
terms (linspace command)
Answer:
Creating a vector can be done in several ways:
Question:
False
Answer:
The rule in creating a matrix is that some of the rows must have the same number of
elements
Question:
- By known list of numbers (row, column) or functions
- By specifying the first, the spacing, and the last term
, - By specifying the first and last terms, and the number of
terms (linspace command)
Answer:
Creating a matrix can be done in several ways:
Question:
False
Answer:
Not all variables in MATLAB are arrays
Question:
• Vector:v(:);v(m:n)
• Matrix:A(:,n);A(n,:);A(:,m:n);A(m:n,:);A(m:n,p:q)
Answer:
Using a colon to address a range of elements in vector or matrix
Question:
True
Answer:
Adding an element which is beyond the size of a matrix, similar as in vector case, will
result in added zeros
Question:
length(A), size(A), reshape(A, m, n), diag(v), diag(A)
Answer:
Built-in functions for handling arrays
Question:
String
Answer:
an array of characters
Question:
100% Verified Answers
Question:
Table
Answer:
A rectangular array of data
Question:
script file
Answer:
a sequence of MATLAB commands also called
program (also called M-files)
Question:
- Must begin with a letter
- Can be up to 63 characters long (31 in MATLAB 6)
- Can contain letters, digits, and the underscore characters -
MATLAB is case sensitive
- No space is allowed
- No use of built-in functions
Answer:
Rules about variable names:
Question:
Array
Answer:
a fundamental form that MATLAB uses to store and manipulate data
Question:
An array
Answer:
a list of numbers arranged in rows and/or columns
,Question:
characters (strings)
Answer:
In addition to arrays of numbers, arrays in MATLAB can be made of a list of
Question:
True
Answer:
Tables can be usually converted to arrays
Question:
True
Answer:
In MATLAB a vector is created by assigning the elements of the vector to a variable
Question:
- By known list of numbers (row, column) or functions
- By specifying the first, the spacing, and the last term (with or
without brackets, forward and backward)
- By specifying the first and last terms, and the number of
terms (linspace command)
Answer:
Creating a vector can be done in several ways:
Question:
False
Answer:
The rule in creating a matrix is that some of the rows must have the same number of
elements
Question:
- By known list of numbers (row, column) or functions
- By specifying the first, the spacing, and the last term
, - By specifying the first and last terms, and the number of
terms (linspace command)
Answer:
Creating a matrix can be done in several ways:
Question:
False
Answer:
Not all variables in MATLAB are arrays
Question:
• Vector:v(:);v(m:n)
• Matrix:A(:,n);A(n,:);A(:,m:n);A(m:n,:);A(m:n,p:q)
Answer:
Using a colon to address a range of elements in vector or matrix
Question:
True
Answer:
Adding an element which is beyond the size of a matrix, similar as in vector case, will
result in added zeros
Question:
length(A), size(A), reshape(A, m, n), diag(v), diag(A)
Answer:
Built-in functions for handling arrays
Question:
String
Answer:
an array of characters
Question: