Using polyfit to predict where the object falls ?
- by ZaZu
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 !