How to interpolate a step function?

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?

답변 (0개)

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

2018년 3월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by