Clear Filters
Clear Filters

An object ​starts wit​h an initi​al velocit​y of 3 m/s​ at t = 0 ​and it acc​elerates w​ith an  accelerati​on of a(t)​ = 7t m/s2 . Find the​ total dis​tance trav​eled in 4 ​s using tw​o polyint(​), and  print your​ answer wi​th units t​o the comm​and window​. 

2 views (last 30 days)
I'm not sure if it is necessary to look up physics formulas for this or what? I have no experience with polyint, I just know that it integrates polynomials, but I don't think that is where my problems with this lie. I'm also pretty sure all we need to use are the 2 polyint functions to get the answer.
  2 Comments
Stephen23
Stephen23 on 21 Sep 2017
@Snooping Poppet: it is not appreciated when you edit away the text of your question. Imagine if everyone did that, then this entire forum would be useless for anyone else as it would only consist of thousands of threads all reading "This post was taken down". Would you find that useful?
By deleting your question you unilaterally decided that James Tursa's volunteered time helping you shall not be useful to anyone else. Does James Tursa get a say in this decision? Do you think this is why we volunteers come here and write our advice and comments?
If you want a consulting service then you will find plenty of them on them internet. This is a community forum with answers provided by volunteers.

Sign in to comment.

Answers (1)

James Tursa
James Tursa on 15 Nov 2016
Edited: James Tursa on 15 Nov 2016
Start with:
doc polyint
doc polyval
Then use the following:
acceleration = a polynomial in t (per your question)
velocity = initial velocity + integral of acceleration
position = initial position + integral of velocity
For the integrals, use polyint as directed (look at the examples in the doc to see how to make a vector of coefficients to represent your polynomials). To get the numeric answer at t = 4 you can use the polyval function.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!