Question: Use array indexing and relevant MATLAB features to perform the following: a . Define the 3 columns with numerical calues, above, as A . b

Use array indexing and relevant MATLAB features to perform the following:
a. Define the 3 columns with numerical calues, above, as A.
b. Extract Product A data column (price & amount sold) from array A.
Save it as Prod_A_data
c. Extract the price row from array A.
Save it as price
d. Extract the row for the Quantity sold in Loc 2 from array A.
Save it as Loc_2_data
e. Creat a 33 array that determines the revenue of each product in each location (multiply the prices by the quantity sold in each location)
Save to the variable All_prd_loc_sale
f. Find the total revenue of all products sold in Loc 2. Use sum command to get the summation of a row.
Save to the variable Loc_2_Rev
g. Find the total revenue of Product C sold in all locations. Use sum command to get the summation of a column.
Save to the variable Prod_C_Rev
h. Use max command to find the highest revenue among the 3 products
Save to the variable Prod_max_rev
i. Use min command to find the lowest revenue among the 3 locations.
Save to the variable Loc_min_rev
j. Expand the original array, A, to include Product D.
Save to the updated A as A?new
 Use array indexing and relevant MATLAB features to perform the following:

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!