Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need done in matlab quickly and correctly. Its due in 1 hour and 20. Also post code below that can be copied thanks. %% P1
Need done in matlab quickly and correctly. Its due in 1 hour and 20. Also post code below that can be copied thanks.
%% P1 [ 40 Points ] clear all, clc train_data = [1 645.3 11.2 2 325.8 6.4 3 173.2 2.3 4 61.8 1.3]; %{ The vector above stores the train number, route distance, and the route time for several trains. For example, Train 1 traveled 645.3 kilometers in 11.2 hours. Train 2 traveled 325.8 kilometers in 6.4 hours, and so on. %{ a. Write a code that separates 'train_data' into three vectors: train, distance, and time. Note: The code should work for a vector with any number of trains. b. Use an array operation to create a new vector storing the average velocity (rate of travel) for each train. c. Create a matrix in which the first column is the train number and the second column is the corresponding train's average velocity
Need done in matlab quickly and correctly. Its due in 1 hour and 20. Also post code below that can be copied thanks.
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