Question: CHALLENGE 6 . 2 . 1 : Integer indexing array: Weekend box office This tool is provided by a third party. Though your activity may

CHALLENGE
6.2.1: Integer indexing array: Weekend box office
This tool is provided by a third party. Though your activity may be
02
Integer indexing array: Weekend box office
The row array movieBoxOffice stores the amount of money a movie makes (in millions of $) for the 7 days of a week, starting with Sunday. Write a statement that constructs a row array weekendBoxOffice having the values for Sunday, Friday, and Saturday.
Ex: If movieBoxOffice is 5.6,3.5,1.1,1.5,0.8,1.2,1.9, then weekendBoxOffice is 5.6,1.2,1.9
Function o.
B Save
C Reset
MATLAB Documentation
function weekendBoxOffice = GetWeekendEarnings(movieBoxOffice)
% movieBoxoffice : 7 day box office sales in millions, starting with sunday
% Assign Sunday, Friday, and Saturday box office
% earnings to row array weekendBoxoffice
weekendBoxoffice =;
end
Code to call your function o.
CReset
1 GetWeekendEarnings([5.6,3.5,1.1,1.5,0.8,1.2,1.9])
 CHALLENGE 6.2.1: Integer indexing array: Weekend box office This tool is

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!