MATALAB function in simulink

How can I create a MATLAB function in SIMULINK, that clips angle between -90° and 90°, and convert it to radians?

 Accepted Answer

Sebastian Castro
Sebastian Castro on 27 May 2014
Do you need this to be MATLAB code? If so, you can use a MATLAB Function block in the Simulink --> Ports & Subsystems Library and type your own MATLAB code in there.
If you want the Simulink block approach, you can use a Saturation block to limit the angle signal and then convert it to radians with a Gain block set to pi/180.
Best,
Sebastian

More Answers (1)

baiarassou
baiarassou on 2 Jun 2014
i have done it before, thank u

Categories

Products

Community Treasure Hunt

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

Start Hunting!