Calculating distance using matlab

  • Thread starter Thread starter Mdhiggenz
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary

Discussion Overview

The discussion revolves around calculating the distance traveled by a race car over the first six seconds of a race using MATLAB, based on provided speed data. Participants are examining the implications of unit conversions and the accuracy of the calculations involved.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant calculated the distance using the trapezoidal rule and obtained a result of 395.5, questioning why the expected answer is 776.6.
  • Several participants inquire about the units of distance, suggesting that the units of velocity (mi/h) might lead to confusion regarding the distance calculation.
  • There is a suggestion that converting velocity from miles per hour to miles per second might be necessary for accurate distance calculation.
  • One participant humorously remarks on the implausibility of covering 776.6 miles in just six seconds, emphasizing the importance of clear unit specifications in the problem statement.
  • Another participant points out the inconsistency in the problem statement regarding the units of velocity and distance.

Areas of Agreement / Disagreement

Participants express uncertainty about the correct units for distance and velocity, and there is no consensus on the proper approach to resolve the discrepancies in calculations.

Contextual Notes

The discussion highlights potential limitations in the problem statement, particularly regarding unit specifications and the assumptions made by participants about those units.

Mdhiggenz
Messages
324
Reaction score
1

Homework Statement


The speed of a race car during the first seven seconds of a race is given by:
t(s)=0,1,2,3,4,5,6
v(mi/h)=0,14,39,69,95,114,129

Calculate the distance of the first 6 seconds.

What I did is q=trapz(t,v)=395.5

answer is 776.6.

Where did I go wrong?

Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
What are the units of distance? Feet, Miles, Furlongs?
 
SteamKing said:
What are the units of distance? Feet, Miles, Furlongs?

Looks like miles from the v.

That may be the source of the error. Shouldn't you convert the v values into mi/sec?
 
the solution does not specify but I would assume miles.
 
Well, if your race car can cover 776.6 miles in 6 seconds, you have quite a machine.

If the solution does not specify units, throw the source material away. It is no good for learning from.
 
Mdhiggenz said:
the solution does not specify but I would assume miles.

If the solution doesn't say then why did you write mi/h in the velocity list?

Did you try converting the v values to miles/second and then use the trap function?
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 40 ·
2
Replies
40
Views
8K
Replies
15
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
13K
  • · Replies 4 ·
Replies
4
Views
3K