Question: USE MATLAB TO WRITE THE PRGRAM PLEASE Assignment M3_User-Defined Function with Data Generation (Skill-Based Assignments, Individual, 20 points) 1. A truck makes deliveries from the

USE MATLAB TO WRITE THE PRGRAM PLEASE
Assignment M3_User-Defined Function with Data Generation (Skill-Based Assignments, Individual, 20 points) 1. A truck makes deliveries from the warehouse to retail stores. Using a delivery truck's log showing the distances between stores, and the time spent in transit from store to store, the company's transportation engineer developed a model for the truck's speed as a function of time: v-50+2 tan (t) where v- the truck's speed in miles/hr time, hrs Using a time interval of 0 to 8 hours, with increments (time steps) of 0.5 hour, write a script that will generate a data set of truck speeds as a function of time. In addition, write the output to a.txt file called TruckSpeed. txt. Truck speeds should be shown with 1 decimal place accuracy 2. A "governor" is placed in a motor vehicle to limit its speed to a predetermined maximum The transportation engineer, who is concerned about fuel economy and the driver's probability of speeding to save time, wants to install a governor on the truck so that the speed does not exceed 55 miles per hour. Write a function script to plot the truck's speed over time, using the txt file in Part 1 In order to convince their manager to authorize the purchase of a governor for the truck, the transportation engineer needs to show how often the governor would be used, based on the truck's speed history. Use the data calculated in Problem 1 and the function file from Problem 2 to write a script to calculate the percentage of speeds that exceed 55 miles per hour. In your output, include a label next to each speed to indicate whether a governor is necessary to limi the speed. Please submit the following to this Canvas site before 11:55 PM on the day before your Week 10B class: 1. Your .m files for Parts 1, 2, and 3 2. Your .txt file from Parts 1 and 2 .A pdf of your plot from Part 2 4. A screen shot of your results from Part 3 as a pdf file Assignment M3_User-Defined Function with Data Generation (Skill-Based Assignments, Individual, 20 points) 1. A truck makes deliveries from the warehouse to retail stores. Using a delivery truck's log showing the distances between stores, and the time spent in transit from store to store, the company's transportation engineer developed a model for the truck's speed as a function of time: v-50+2 tan (t) where v- the truck's speed in miles/hr time, hrs Using a time interval of 0 to 8 hours, with increments (time steps) of 0.5 hour, write a script that will generate a data set of truck speeds as a function of time. In addition, write the output to a.txt file called TruckSpeed. txt. Truck speeds should be shown with 1 decimal place accuracy 2. A "governor" is placed in a motor vehicle to limit its speed to a predetermined maximum The transportation engineer, who is concerned about fuel economy and the driver's probability of speeding to save time, wants to install a governor on the truck so that the speed does not exceed 55 miles per hour. Write a function script to plot the truck's speed over time, using the txt file in Part 1 In order to convince their manager to authorize the purchase of a governor for the truck, the transportation engineer needs to show how often the governor would be used, based on the truck's speed history. Use the data calculated in Problem 1 and the function file from Problem 2 to write a script to calculate the percentage of speeds that exceed 55 miles per hour. In your output, include a label next to each speed to indicate whether a governor is necessary to limi the speed. Please submit the following to this Canvas site before 11:55 PM on the day before your Week 10B class: 1. Your .m files for Parts 1, 2, and 3 2. Your .txt file from Parts 1 and 2 .A pdf of your plot from Part 2 4. A screen shot of your results from Part 3 as a pdf file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
