How to interpolate a step function?

7 visualizaciones (últimos 30 días)
Diemo Schwarz
Diemo Schwarz el 29 de Mzo. de 2018
If I have a function with steps that I want to sample regularly, interp1 complains about not strictly monotonic data. However, a step in the data is being interpreted as being defined up to the next time point, interpolation (at least table lookup) is well defined. How can one achieve this in matlab?

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by