How can I curve fitting data for an specific function?

I have a chart which has 2 types of data (one for the time and the other one for a measured variable). I need to curve fit those data to find a function like this: y= A*sin(2*pi*f+ang). It requires finding A, f, and ang which best curve fitting those data. What is the process that I can applied to achieve this objective? Have You any documentation to do that?
Thanks a lot.

Categories

Products

Asked:

rn
on 23 Jan 2014

Edited:

on 23 Jan 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!