Question: MATLAB HELP!!!! Reading data from CSV File!!! ============================================================ A company has two trucks. Truck 1 can travel at a speed of 50 km/hr and truck
MATLAB HELP!!!! Reading data from CSV File!!!
============================================================
A company has two trucks. Truck 1 can travel at a speed of 50 km/hr and truck 2 can travel at 38 km/hr
The two trucks go from store to store in order to make deliveries. The location of the stores are given in coordinates and are stored in a CSV file.
Write a Matlab function that will use a given pair of coordinates to determine the
Absolute distance (straight line distance) from one store to another. Using Pythagorean theorem may be helpful a^2 + b^2 = c^2
The time it takes the truck to cover this distance for any given speed
=================================================================================================================
Output the total distance and time covered for both trucks for the whole trip individually and combined in a txt file called Trucks.txt
Units should be in Kilometers and add the time required to go back to the factory as well. Distance value should be accurate to 2 decimal points.
===================================================================================================================
Here is the Data Set (store CSV/Excel file):
Column 1: Truck 1 west/east
Column 2: Truck 1 north/south
Column 3: Truck 2 west/east
Column 4: Truck 2 north/south
======================================================================================
0 0 0 0
10 0 -6 -2
10 5 -10 -8
5 10 -10 -16
0 10 -4 -20
-5 15 4 -20
-12 15 10 -16
-12 5 10 -8
-5 0 6 -2
0 0 0 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
