Question: I. Final Exam Practice Questions: For the following 2 - D table, which code will output the maximum number of products from Product 2 column.

I. Final Exam Practice Questions:
For the following 2-D table, which code will output the maximum number of products from Product 2 column. Assuming that the complete table is stored in a variable called A.
\table[[Factory,Product 1,Product 2,Product 3],[1,50,350,250],[2,150,300,500],[3,50,400,200],[4,50,150,300],[5,450,350,150],[6,350,350,400],[7,200,100,150],[8,100,200,300]]
a.
b.
c. max(A(3,:))
d.
2. Consider the following matrix of values:
x=[14,23,54,112,80,334]
Use a for loop to display how many values are greater than 23 and less than 88?
3. Create MATLAB variables to represent the following matrices and use them in the following exercises.
a=[8144562103],b=[113131921734063450120],c=[81071]
i. Assign to the variable ml the first four values in matrix a as the first row and all the values in matrix b as the second, third and fourth row.
ii. Assign to the variable m2 the values in matrix c as the first column, the values in matrix b as columns 2,3,4, and 5 and the values in matrix a as the last row.
iii. Find the the row and column numbers of the elements in matrix m2 that contain values less than 30.
iv. Find the values in matrix m2 that are greater than 50.
 I. Final Exam Practice Questions: For the following 2-D table, which

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!