Fitting a Step/Stair Function to data...

조회 수: 15 (최근 30일)
Kylie Hansen
Kylie Hansen 2017년 4월 25일
답변: Prashant Arora 2017년 4월 28일
I have two vectors of data, each of somewhat significant size (1x784), that I wish to curve fit. I have the curve fitting toolbox, if that helps. Context: This data is from an exoplanet transit. One vector is the brightness of the star in magnitude and the other is time in UTC hours, so when plotted you get a brightness over time curve. There is a slight dip in the center, and this is what I wish to show from the step/stair function. I've tried fourier, but it looks too gradual, too smooth. Is there a way to fit a stair/step function to the data?

답변 (1개)

Prashant Arora
Prashant Arora 2017년 4월 28일
Hi Kylie,
You can follow the approach presented in this File-exchange submission to fit curves to data with a sudden discontinuity.
Hope this helps!

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by