Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do not submit a wrong one because I have to check this assignment if you want you can send me on my email: at

Please do not submit a wrong one because I have to check this assignment

if you want you can send me on my email: at my account email address

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(,'pdf')

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

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago