Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
flowchart
Polymorphism
Home
Questions
Questions
Study lists
roba younis Questions
2249 Questions
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)
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
307
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)
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
313
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
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
283
Generate a 2 x 3 matrix of random
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
205
When would you use length vs. size for a vector?
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
205
Which would you normally use for a matrix: length or size? Why?
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
216
Generate a 2 x 4 matrix variable mat. Verify that the number of elements is the product of the number of rows and columns
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
224
Generate a 2 x 4 matrix variable mat. Replace the first row with 1:4. Replace the third column (you decide with which values)
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
183
write an expression that refers to only the elements that have oddnumbered subscripts in a vector, regardless of the length of the vector. Test your expression on vectors that have both an odd and even number of elements
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
202
Using the colon operator and the transpose operator, create a column vector myvec that has the values -1 to 1 in steps of 0.5
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
207
Create a variable myend which stores a random integer in the inclusive range from 5 to 9. Using the colon operator, create a vector that iterates from 1 to myend in steps of 3
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
196
How many elements would be in the vectors created by the following expressions?
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
220
Using the colon operator and also the linspace function, create the following row vectors:
Matlab
2022-11-28
Answers
30
Question
40
Followers
30
0
1
224
Total:
2249
Previous
30
31
32
33
34
Next
Go