Question
MATLAB PROJECT: ENES 101 MATLAB Project Description `Spring 2021 Background: As some of you might know, Talal is an avid bike rider. Since the COVID-19
MATLAB PROJECT:
ENES 101 MATLAB Project Description `Spring 2021
Background: As some of you might know, Talal is an avid bike rider. Since the COVID-19 lockdown, most of his riding has been on an indoor trainer coupled to the online app Zwift. This project applies our MATLAB and data analysis skills to actual data collected his Zwift rides from March 30, 2021 to December 31, 2021.
The MATLAB script GetRideDataS21, which will be provided on Blackboard, creates six arrays of data: DayOfYear, DecimalMinutes, DistanceMiles, Calories, SpeedMPH,climb,and cadence. The respective units are an integer count, time in minutes, with 20.5 = 20:30, distance in miles, kcal (dietary Calories), miles per hour, feet, and strokes per minute. Download this script into your MATLAB directory. Use these arrays as instructed in the various sections of the Assignment.
All submissions should be in PDF format via the Blackboard Assignment facility.
All questions posed in the various parts of the assignment should be answered by output of text in the command window.
Assignment: This assignment has four parts due at different times.
Part 1: Create Useful Functions
Due: Monday, March 22, unless changed in class and on Blackboard Credit: One Homework Assignment: Do this assignment after reading zyBooks Chapter 3. Create the following functions in MATLAB and save them to your directory. You must use the function names provided below! Use the attached test script TestConversionsS21.m to test your functions.
kmout = MilesToKm(miles) % converts a value in miles to kilometers
kJoulesOut = CalTokJoules(DietaryCalories) % converts dietary calories (big calories) to kiloJoules (10^3 Joules = 1 kJ)
kWhrOut = KJoulesToKWHr(Kjoules) % converts kJoules to kilowatt hours metersout = FeetTokm(feet) % converts feet to
kilometers secondsout = HoursToSeconds(hours) % converts hours to seconds
Each of the functions must follow good programming practices, including appropriate help comments that will respond to MATLABs help command.
Submission: ExecutethetestscriptTestConversionsS21. PublishTestConversionsS21, its outputs, and each of your m-files to PDF form and submit them per the instructions received in discussion. A single output PDF containing all of the information is preferred, but separate files will be accepted.
The publish command is executed in the MATLAB command window, and looks like this: >> publish(
DO NOT include the < or > when you use publish. For example, here is a publish command that Talal used recently in another class:
>> publish('CMPE323_F19_Lab0_solution','pdf') The resultant PDF file will show up in a folder named HTML in your current MATLAB directory.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started