Question: ***MATLAB*** Part 1: Boat Race Statistics (Vectors, Input/Output) Using the dataset provided (dataset.csv), write a script that will determine each boats Average velocity (in knots)

***MATLAB***

Part 1: Boat Race Statistics (Vectors, Input/Output) Using the dataset provided (dataset.csv), write a script that will determine each boats

Average velocity (in knots)

Maximum and minimum speed (in knots)

The standard deviation of the speed of each boat

Be sure to calculate these properties without using the built-in functions in MATLAB for mean, sum, max, min, std, or other statistical functions. We want you to apply mathematical and programming reasoning to construct these calculations.

Output these results to a file called RaceStatistics.txt , using the fprintf command with numeric output as you have done earlier. The following example shows one way to explain the calculated quantities, but the numbers are not correct for your input data. You can use the wording shown below, or re-organize the information into two statements, one for Boat 1 and one for Boat 2. Your results should have the same numeric format as shown below:

The average instantaneous speed was 25.6 knots for Boat 1 and 24.9 knots for Boat 2. The maximum speeds were 35.1 knots for Boat 1 and 37.3 knots for Boat 2. The minimum speeds were 24.1 knots for Boat 1 and 25.6 knots for Boat 2. Boat 1 had a standard deviation of 6.5 knots, and Boat 2 had a standard deviation of 5.3 knots.

Part 2: Boat Race Statistics (Plotting, Parsing Data)

By examining the data, choose a time interval in which Boat 1 traveled faster than Boat 2, and a different time interval in which Boat 2 traveled faster than Boat 1. For each interval, plot the total time elapsed against each boats speed, using different symbols or colors to show the curve for each boat on the same set of axes. Add a title for each plot to indicate which boat was faster. Apply a grid (MatLab command grid) and place both curves on the same plot using MatLab command hold on.'

Don't worry about the data set and just help me with the skeleton code for this if possible, thanks!

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!