Using polyfit to predict where the object falls ?

Posted by ZaZu on Stack Overflow See other posts from Stack Overflow or by ZaZu
Published on 2010-05-14T21:37:40Z Indexed on 2010/05/14 21:44 UTC
Read the original article Hit count: 258

Filed under:

Hi there,

I have information of an object being thrown at a parabolic pattern. There are 30 images in total taken at specific intervals from the start position till the end.

Now I have managed to extract the x,y coordinates of the object being thrown in all 30 images... I think that using polyfit (or maybe polyval ? ) may help me predict where the object will fall after the first 15 images ...

I just want to know, how can polyfit be used with the 30 x,y coordinates I have ?

( I have a loop to extract each image from a mat file 1 row at a time until 30 .. and then plot that image .. so should I use polyfit in the same loop before/after the plot ???

Any ideas ??

Thanks !

© Stack Overflow or respective owner

Related posts about matlab