Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions