File Exchange

image thumbnail


version 1.0.2 (1.26 MB) by Chad Greene
Fit an annual sinusoid to data using a least-squares approximation.


Updated 13 Jun 2019

View License

Three functions here (check the Examples tab for formatted examples):

sinefit: estimates the amplitude, phase, linear trend of a sinusoid, given some data points in time.

sinefit_bootstrap: performs a bootstrap analysis to estimate uncertainty in the sinusoid fit.

sineval: evaluates a sinusoid with a given amplitude, phase, trend.

Cite As

Chad Greene (2019). sinefit (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)



Updated live scripts


Added live scripts

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Daily Antarctic sea ice concentration, Arctic Sea Ice

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor