It looks like you're new here. If you want to get involved, click one of these buttons!
Hello! I don't understand how to create .MAT file and then perform the given tasks.
Can someone lead me in the right direction to get started? Please and Thank you.
Review Question 1:
Assume four row vectors name Prod10, Prod11,Prod12,and
% Prod13 contain data on the production of various electronic devices at
% your company during the four year 2010,2011,2012 and 2013, respectively.
% The corresponding elements in each represent the number of specific part
% manufactured during that year. For example, the first element might
% contain the number of 2N3904 transistor produced during each year, whereas
% the fifth column might contain the same number of elements, corresponding
% to the same produced items.
% Write a single line code to answer each of the following questions.You may
% use the results of any question to answer subsequent questions if desired
% Note that your solutions should work regarless of the number of elements
% in the four vectors.
% (a) Create a new vector TotalProd that contains the total number of each
% item produced during the four year period. Note that TotalProd will have
% the same number of elements as the original four vectors.
% (b) Create a new vector AvgProd that contains the average number
% produced per year of each item during the four year period. Note that
% AvgProd will have the same number of elements as the original four vectors
% (c) Create a four element column vector YearProd that contains the total
% the totalnumber of all units produced during each year.2010 production
% should be in the first top element.
% (d) Determine the maximum number of any type of device produced during
% each year and place the results in a four element column vector MaxProd
% (e) Determine the maximum number of any device produced during any year
% and place the result in the scalar OverallMax.
% (f) If your company makes a profit of one-fifth of one cent each device
% produced, regardless of type, determine the total profit made during this
% four year period and place the result in Profit. Your result should be in