How to set rate limit?

Can somebody please help me I am trying to set a maximum rate limit of an input of aileron deflection to 0.1 radians per second in MATLAB. I can't find how to do this

Answers (1)

You can use min() to saturate:
rate = min(rate,0.1)

1 Comment

Andrew
Andrew on 7 Mar 2013
Thankyou for your answer....I have this line of code:
daileron = min(25/180*pi,0.1) %25 degree deflection
this is not giving me the desired response in what context do I use this function?

Sign in to comment.

Categories

Find more on Programming in Help Center and File Exchange

Products

Tags

Asked:

on 7 Mar 2013

Community Treasure Hunt

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

Start Hunting!