MATLAB: Least Square Minimization (Levenberg-Marquant method) of damped oscillation curves

damped oscillationsleast square minimzationMATLAB and Simulink Student Suite

Hi,
My goal is to fit my experimental data (attached) with the following equation with Levenberg Marquant method :
A*exp(-c*t)*sin(2*pi*f*t+phi), where A is the amplitude, t is time, c is the damping coefficient and f the frequency and phi the phase coefficient.
As my skills are weak in least square minimzation in Matlab, thanks in advance for your help,
Louise.

Best Answer

You can use lsqcurvefit with the 'levenberg-marquardt' Algorithm setting