How to approximate a linear function as a variable-step stair function?

Hello forum, I would approximate the red linear function with the green one, so a series of variable-width step (of course, the variation law for the width is known and the step height is constant for each one). Do you have any idea?

Answers (0)

Categories

Asked:

on 20 Nov 2017

Community Treasure Hunt

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

Start Hunting!