Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
sine curve fitting lsqcurvefit

Subject: sine curve fitting lsqcurvefit

From: Gule Saman

Date: 4 Mar, 2009 14:54:01

Message: 1 of 2

Hello,

I am plotting the intensity values at each pixel point from different images on a single plot. It should ideally form a sinusoid. Being experimental data it does not. I want to fit a sin curve on to the data.

Can anyone please tell me how i should do this? I know i have to use lsqcurvefit but i can not figure out how to use it on my data.

bye

Subject: sine curve fitting lsqcurvefit

From: Gule Saman

Date: 4 Mar, 2009 16:11:01

Message: 2 of 2

"Gule Saman" <gulesaman@gmail.com> wrote in message <gom4m9$cc6$1@fred.mathworks.com>...
> Hello,
>
> I am plotting the intensity values at each pixel point from different images on a single plot. It should ideally form a sinusoid. Being experimental data it does not. I want to fit a sin curve on to the data.
>
> Can anyone please tell me how i should do this? I know i have to use lsqcurvefit but i can not figure out how to use it on my data.
>
> bye

I know there is a standard equation for sine but i just have the x and y coordinates of the plotted point from the plot on which the curve has to be fitted.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us