Question: MATLAB LANGUAGE, and plz DON'T USE LOOP(iteration like if, while, for) Function: bestDeals Input(s): - (double) 7x array of the price of a flight ticket

MATLAB LANGUAGE, and plz DON'T USE LOOP(iteration like if, while, for)
Function: bestDeals Input(s): - (double) 7x array of the price of a flight ticket for every day of a week (rows) for several weeks (columns) - (double) Day in which calendar starts - (double) Month in which the calendar starts Output(s): - (double) the day when the flight ticket is the cheapest - (double) the month when the flight ticket is the cheapest - (double) the price of the cheapest flight ticket Skills Covered: - Masking - Minimum - Vector math Function Description: Write a function that takes in an array with the prices of flight tickets for everyday of the week (rows) over several weeks (column), and outputs three values: (1) the day when one can find the cheapest ticket, (2) the month when one can find the cheapest ticket, (3) the cheapest ticket price. Related problems: - HW05 - Arrays - Level 2: warmerDays Note(s): You may assume that all months have 30 days to simplify your calculations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
