- Branch the output of 'Interpreted MATLAB Fcn' and pass it to a ‘unit delay’ block.
- On that signal, apply any conditions through which you can calculate by what value to limit 'velocity'.
- Add or subtract this signal as per your need, to the original 'velocity' signal.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1629023/image.png)