Question: Please use MATLAB to answer the following questions. Also, please provide coding and pictures - thank you!! Write a MATLAB Script called expedition that asks
Please use MATLAB to answer the following questions. Also, please provide coding and pictures - thank you!!
Write a MATLAB Script called expedition that asks the user to input a row vector called Distance whose seven elements are transportation network segments in miles. Use this to: Create a new Matrix called Expedition that has four columns such that the first column is the elements of your initial row vector (transposed), your second column is the elements in the first column converted to kilometers. Your third column is the travel time in minutes to travel that segment, and the fourth column is the amount of gas needed to travel that distance. Assume the diver is driving at a constant speed of 75 mph and that the vehicle fuel efficiency is 25 miles per gallon. Run your code with the following network distances (given in miles) and generate your outputs. [1105 1215 2188 2099 1266 1509 987] Calculate the total network distance TD in miles. If seven drivers decide to do a cross country by selecting one of these routes each, what will be the average fuel cost at the end of their journeys
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
