Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment M5: MATLAB Tools: Vectors, Plotting and Input/Output (Individual Assignment, 20 points) Part 1: Boat Race Statistics (Vectors, Input/Output)Using the dataset provided (Assignment M5 Data

Assignment M5: MATLAB Tools: Vectors, Plotting and Input/Output (Individual Assignment, 20 points) Part 1: Boat Race Statistics (Vectors, Input/Output)Using the dataset provided (Assignment M5 Data with No Headers.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 formean, sum, max, min, std, or other statistical functions.Output these results to a file called RaceStatistics.txt ,using the fprintf command with numeric output, which can be found in the Week 9A slide set. 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 to show the curve for each boat on the same set of axes. Use the hold command to place both curves on the same plot. See below for a sequence of potentially useful commands for plotting the data. You will need to provide your own text within the single quote marks where you see italicized directions: plot(x1,y1,your choice of color (r, b, or g)); hold on plot(x1, y2,your choice of color); grid; xlabel(What is x1?); ylabel(What are y1 and y2?); title(What are you comparing?); figure; plot(x2,y3,your choice of color ); hold on plot(x2, y3,your choice of color); grid; xlabel(What is x2?); ylabel(What are y3 and y4?); Submit a single PDF and a single .m file for Parts 1 and 2, as well as the data file RaceStatistics.txt, before 11:55 PM on the day of your Week 12B class.The PDF should contain: ? A listing of your code for Parts 1 and 2, with sufficient commenting. ? Two screen shots: one for Boat 1 speed>Boat 2 speed, and one for Boat 2 speed>Boat 1 speed.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Progress Monitoring Data Tracking Organizer

Authors: Teacher'S Aid Publications

1st Edition

B0B7QCNRJ1

More Books

Students also viewed these Databases questions