Using quadratic interpolation in matlab how ?

  • MATLAB
  • Thread starter uaeXuae
  • Start date
54
0

Main Question or Discussion Point

http://img337.imageshack.us/img337/8922/problemcmi0.jpg [Broken]

Can anyone explain to me please how this problem is solved ?
 
Last edited by a moderator:

Answers and Replies

Integral
Staff Emeritus
Science Advisor
Gold Member
7,184
55
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?
 
54
0
Well this is basically what i have done But im not sure why im getting to positive values for t ?
I would like to :
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:
54
0
Anyone please ? I have to submit this in 2 days please help...
 
54
0
Found it finally :


http://img507.imageshack.us/img507/2144/partcns7.jpg [Broken]

This line basically i dont understand:-

p(3)=p(3)-35

Why minus ? I ued trial and error so i dont really know how i got it. May anyone explain please ?
 
Last edited by a moderator:
54
0
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 im having one answer ?
 
54
0
Anyone please help me submission is tommrow
 

Related Threads for: Using quadratic interpolation in matlab how ?

Replies
2
Views
4K
  • Last Post
Replies
0
Views
7K
Replies
4
Views
4K
  • Last Post
Replies
0
Views
5K
  • Last Post
Replies
9
Views
34K
Replies
1
Views
2K
Replies
1
Views
12K
Replies
5
Views
2K
Top