Question: use matlab PUBLISH VIEW S a Users aja0161 | Documents MATLAB cor- /Users/aja0161/Downloads/Examl_001.m titled HW_20.m X Exam1_001.m x + clear all, clc train_data = [1

use matlab
use matlab PUBLISH VIEW S a Users aja0161 | Documents MATLAB cor-

PUBLISH VIEW S a Users aja0161 | Documents MATLAB cor- /Users/aja0161/Downloads/Examl_001.m titled HW_20.m X Exam1_001.m x + 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 hwurs. 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!