Fitting a series of rectangular pulses to data points

2 views (last 30 days)
Is there any way in MATLAB to fit a series of rectangular pulses to data point? Given the number of rectangular pulses, the algorithm should detect the location of pulses and their amplitudes.
Thanks

Accepted Answer

Priyank Sharma
Priyank Sharma on 20 Feb 2018
From my understanding, I think you are trying to fit a model over the data points defined by the amplitude(or the crust values) of every pulse in the rectangular signal. If that is what you are trying then you can use the fit function defined in the curve fitting toolbox in MATLAB to fit the model with the specified 'fitType'.
If this is not what you are trying to achieve, then maybe you can elaborate a little more on that question to clarify.

More Answers (0)

Categories

Find more on Linear and Nonlinear Regression in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!