A company must purchase ve kinds of material. The following table gives the price the company pays per ton for each material, along with the number of tons purchased in the months of May, June, and July:
Use MATLAB to answer these questions:
a. Create a 5 x 3 matrix containing the amounts spent on each item for each month.
b. What is the total spent in May? in June? in July?
c. What is the total spent on each material in the three-month period?
d. What is the total spent on all materials in the three-month period?