MATLAB Using quadratic interpolation in matlab how ?

AI Thread Summary
The discussion focuses on solving a quadratic interpolation problem in MATLAB where the user sets v(t) = 35 and applies the quadratic formula. The coefficients used are a=8.66, b=-349.67, and c=3523.18, leading to two positive values for t: approximately 21.06 and 19.30 seconds. There is confusion regarding the function's definition in MATLAB, specifically whether it should be Ax^2 + bx + c or Ax^2 - bx + c. The user also questions the reasoning behind adjusting p(3) by subtracting 35 and expresses concern about obtaining two instances of the velocity 35 m/s within specific time intervals. The thread concludes with a request for clarification on the physical meaning of having two solutions.
uaeXuae
Messages
54
Reaction score
0
http://img337.imageshack.us/img337/8922/problemcmi0.jpg

Can anyone explain to me please how this problem is solved ?
 
Last edited by a moderator:
Physics news on Phys.org
Two ways, take your pick.

Set v(t) = 35, then use the quadratic formula. OR

set t = each of the possible answers, which is closest to 35?
 
Well this is basically what i have done But I am not sure why I am getting to positive values for t ?
I would like to :
Integral said:
Set v(t) = 35, then use the quadratic formula.

Please feel free to tell me if the quadratic equation i used is wrong:-

a=8.66; b=-349.67;c=3523.18;
discr=qrt(b^2-4*a*c)
qf1=(-b+discr)/(2*a);
qf2=(-b-discr)/(2*a);
qf=[qf1 qf2]

I got qf=

21.0571 19.3025


Is the function in MATLAB defined as:
Ax^2 +bx + c

or

Ax^2 -bx +c
 
Last edited:
Anyone please ? I have to submit this in 2 days please help...
 
Found it finally :


http://img507.imageshack.us/img507/2144/partcns7.jpg

This line basically i don't understand:-

p(3)=p(3)-35

Why minus ? I ued trial and error so i don't really know how i got it. May anyone explain please ?
 
Last edited by a moderator:
In addition to what i posted:

Ok now i can see i figured out the answer But what does not makes sense to me is that the velocity 35m/s is obtained twice between 18 & 22 seconds , 22 & 24 seconds. ! So theoretically i should be having 2 answers. Is there a Physical meaning of why I am having one answer ?
 
Anyone please help me submission is tommrow
 

Similar threads

Replies
4
Views
3K
Replies
4
Views
4K
Replies
1
Views
2K
Replies
32
Views
4K
Replies
2
Views
2K
Back
Top