Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
MATLAB: A Practical Introduction to Programming and Problem Solving
by
Stormy Attaway
Edition:
Fourth Edition
ISBN13:
ISBN10:
459
Matlab
Home
Books
MATLAB: A Practical Introduction to Programming and Problem Solving
Similar Books
No books found
Title
Chapter: 2 /
Q: 15.2
Which would you normally use for a matrix: length or size? Why?
Chapter: 2 /
Q: 16.2
When would you use length vs. size for a vector?
Chapter: 2 /
Q: 17.2
Generate a 2 x 3 matrix of random
Chapter: 2 /
Q: 18.2
Create a variable rows that is a random integer in the inclusive range from 1 to 5. Create a variable cols that is a random integer in the inclusive range from 1 to 5. Create a matrix of all zeros with the dimensions given by the values of rows and cols
Chapter: 2 /
Q: 19.2
Create a matrix variable mat. Find as many expressions as you can that would refer to the last element in the matrix, without assuming that you know how many elements or rows or columns it has (i.e., make your expressions general)
Chapter: 2 /
Q: 20.2
Create a vector variable vec. Find as many expressions as you can that would refer to the last element in the vector, without assuming that you know how many elements it has (i.e., make your expressions general)
Chapter: 2 /
Q: 21.2
Create a 2 x 3 matrix variable mat. Pass this matrix variable to each of the following functions and make sure you understand the result: flip, fliplr, flipud, and rot90. In how many different ways can you reshape it?
Chapter: 2 /
Q: 22.2
What is the difference between fliplr(mat) and mat = fliplr(mat)?
Chapter: 2 /
Q: 23.2
Use reshape to reshape the row vector 1:4 into a 2x2 matrix; store this in a variable named mat. Next, make 2x3 copies of mat using both repelem and repmat
Chapter: 2 /
Q: 24.2
Create a 3 x 5 matrix of random real numbers. Delete the third row
total questions:
459
Previous
4
5
6
7
8
Next
Questions
459
Views
Best Answers
299
Points
5
×
Close
add reason
reason