Page 1 of 1

ENES 101 Spring 2022 MATLAB - Project Description Background: As some of you might know. Dr. LaBerge is an avid bike rid

Posted: Sat May 14, 2022 7:18 pm
by answerhappygod
Enes 101 Spring 2022 Matlab Project Description Background As Some Of You Might Know Dr Laberge Is An Avid Bike Rid 1
Enes 101 Spring 2022 Matlab Project Description Background As Some Of You Might Know Dr Laberge Is An Avid Bike Rid 1 (64.87 KiB) Viewed 61 times
Enes 101 Spring 2022 Matlab Project Description Background As Some Of You Might Know Dr Laberge Is An Avid Bike Rid 2
Enes 101 Spring 2022 Matlab Project Description Background As Some Of You Might Know Dr Laberge Is An Avid Bike Rid 2 (64.87 KiB) Viewed 61 times
Enes 101 Spring 2022 Matlab Project Description Background As Some Of You Might Know Dr Laberge Is An Avid Bike Rid 3
Enes 101 Spring 2022 Matlab Project Description Background As Some Of You Might Know Dr Laberge Is An Avid Bike Rid 3 (78.2 KiB) Viewed 61 times
Enes 101 Spring 2022 Matlab Project Description Background As Some Of You Might Know Dr Laberge Is An Avid Bike Rid 4
Enes 101 Spring 2022 Matlab Project Description Background As Some Of You Might Know Dr Laberge Is An Avid Bike Rid 4 (81.97 KiB) Viewed 61 times
Enes 101 Spring 2022 Matlab Project Description Background As Some Of You Might Know Dr Laberge Is An Avid Bike Rid 5
Enes 101 Spring 2022 Matlab Project Description Background As Some Of You Might Know Dr Laberge Is An Avid Bike Rid 5 (72.36 KiB) Viewed 61 times
ENES 101 Spring 2022 MATLAB - Project Description Background: As some of you might know. Dr. LaBerge is an avid bike rider. From November through January, he has ridden about 1500 miles, all indoors using a bike riding app called Zwit. This project applies our MATLAB and data analysis skills to actual data collected from rides during that period. The MATLAB script GetRideDataS22, which will be provided on Blackboard, creates six arrays of data: DayorYear, DistanceMiles, SpeedMPH, climb. Calories, cadence. The respective units are days, distance in miles, miles per hour, feet, kcal (dietary Calories) and average pedal revolutions per minute (RPM). The array DayorYear counts with January 1, 2021 as Day 1, but does not roll back to zero on January 1, 2022. Use these arrays as instructed in the Assignment All submissions will be via the Blackboard Assignment facility. These are individual assignments. Submitted work will be checked for undue similarity to work from other students. DO YOUR OWN WORKI Violations will be subject to the Academic Integrity provisions outlined in the syllabus, including a zero grade for each project section. Note to all: This assignment differs in significant ways from the equivalent assignment for Fall 2021, and uses completely different data. Assignment: This assignment has four parts due at different times. Part 1: Create Useful Functions Due: Monday, March 7, unless changed in class and on Blackboard 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 TestConversionsF19.m to test your functions. Meters - MilesToMeters (miles) converts a value in miles to meters Joulesout - Callojoules (Dietarycalories) converts dietary calories big calories) to Joules) *Whrout - JoulesToKWH (Kjoules) + converts Joules to kilowatt hours kmout - Feet Tokm (feet) converts feet to kilometers secondsout - HoursToSeconds (hours) converts hours to seconds Credit: One Homework

Each of the functions must follow good programming practices, including appropriate help comments that will respond to MATLAB's help command. Submission: Execute the test script TestConversions22. Publish TestConversions $22. 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 the name of the file as text enclosed in single quotes, 'pdf"> DO NOT include the *<" or "> when you use publish. For example, here is a publish command that Dr. LaBerge has used in another class: >> publish ("CMPE323_F19_Labo_solution', 'pdE') The resultant PDF file will show up in a folder named HTML in your current MATLAB directory. Part 2: Plot raw data. Monday, April 11, unless changed in class and on Blackboard Credit: One Homework Assignment: Do this assignment after reading ZyBooks Chapter 7. Use the provided script GetRideDataS22 to create the six arrays identified in the Background section above. All you need to do is to save the script to your MATLAB directory and then invoke the script by typing GetRideDatas22 at the command prompt or in your script file. Using the data provided create the following plots. For each plot, label the x and y axes and provide a title Figure 1: Convert Calories to a new variable joules. Hint: Consider using your functions from Part 1! Plot climb as the independent variable and joules as the dependent variable. Indicate each data point with an open circle ("0"). Do not include the connecting lines (why not?). Figure 2: Convert DistanceMiles to a new variable DistanceMeters. Then, create two subplots, arranged vertically. On the first, plot DistanceMiles as the independent variable and joules (used in Figure 1) as the dependent variable using a red square for the plot marker. Label your axes and provide a title. On the second subplot, use the MATLAB function semilogy to plot the same data. Use a blue triangle as a data marker but do not include the lines the data points. Label your axes and provide a title. Figure 3: Create four subplots in a 2 x 2 configuration. On the first two plots, repeat the plots of Figure 2. On plot 3. plot climb as the independent variable and joules as the dependent variable, using a black left triangle as the marker. Do not include the

connecting lines. Label the axes. On plot 4, plot cadence as the independent variable and climb as the dependent variable, using a green asterisk (*) as a marker. Do not include the connecting lines. Label the axis. Copy and paste each of the figures into Word or equivalent word processor. In the document header, put your name, your section (Tu 8. Tu 10, etc, and your student ID (AB12345)). Print your file to PDF, and submit that PDF following the instructions you receive in discussion section. It is important to learn how to incorporate MATLAB files into Word documents. Part 3: Find best lines of fit Due Monday, April 25, unless changed in class and on Blackboard Credit: One Homework Assignment: Create a single MATLAB script file that performs all of the tasks described here. Use the provided script GetRide Datas22 to create the six arrays identified in the Background section above. Convert climb to a new variable climb_meters. Using climb_meters and Calories, plot the measured points as "o" with no connecting lines, using climb meters as the independent variable. On the same set of axes with the data points, compute and plot the best first order (linear) fit of the forms y = ax+b. Display and clearly label the values for a and b, including the proper units. Predict and display an estimate of the number of Calories Dr. LaBerge would consume in a ride that included the metric equivalent of 4200 feet of climbing Repeat this process with the variables speed. Convert speed from mph to kph and then plot speed_kph and calories, using speed_kph as the independent variable. Predict and display an estimate the number of calories that Dr. LaBerge would consume with a ride that had an average speed of 27.5 kph. Publish your script file and its outputs and submit it following the instructions you receive in discussion. Part 4: Put it all together Due Monday, May 16, unless changed in class and on Blackboard Credit: Three Homework grades. Create a single MATLAB script that performs all of the tasks described in this section. Use the provided script GetRideDatas22 to create the six arrays identified in the Background section above. Perform the following computations and prepare the associated plots. In all cases, plot the measured points as "o" with no connecting lines and plot the best fit line as a solid red line. Figure 1: Using the appropriate transformations of the variables climb and Calories, plot the measured points as "o" with no connecting lines, using climb as the independent variable. Prepare the plot using climb in meters and energy expended in kilojoules. On the same

set of axes with the data points, compute and plot the best first order (linear) fit of the forms y=ax+b. Display and clearly label the values for an and b, including the proper units . Predict and display an estimate of the amount of calories Dr. LaBerge would consume in a ride that included 2000 meters of climbing. Figure 2: The cadence variable represents the average pedal revolutions per minute (rpm) for each leg over the duration of the ride (1 rpm = 2 strokes, one per leg). Using cadence and computations you made in earlier sections, estimate average energy (in joules) consumed for each pedal stroke during each ride. In a new figure, plot the average energy per stroke in joule (the dependent variable) against the distance in kilometers. Figure 3: Finally, plot the cadence (dependent) against the distance in miles. Find the mean and the standard deviation of cadence and display them with the appropriate units. Find the best least squares line of cadence as a function of distance. Look at the value of the compute slope variable and provide a short (1 paragraph) discussion of how you should interpret the slope variable when describing the relationship between the cadence and distance. Publish your script file and its outputs and submit it following the instructions you receive in discussion.