Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

curve fitting

7 views
Skip to first unread message

jorge

unread,
May 23, 2013, 4:43:10 PM5/23/13
to
hello
im currently working on a cosine curve fit using the fminspleas code, it works out perfectly for the form f(t) = a*cos((x-phi)*(2*pi/T)), where T is the period of my function.
the code lets me know a and phi very accurately, but im now in the need to find the function form
f(t) = a*cos((x-phi)*(2*pi/T)) + c
how can i find c?, which correspond to the vertical displacement of the function
thanks

Torsten

unread,
May 24, 2013, 2:28:16 AM5/24/13
to
"jorge " <jorge_ca...@hotmail.com> wrote in message <knlv0u$di1$1...@newscl01ah.mathworks.com>...
By selecting f1=cos((x-phi)*(2*pi/T)) and f2=1 ?

Best wishes
Torsten.
0 new messages