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?

 Respuesta aceptada

Sebastian Castro
Sebastian Castro el 27 de Mayo de 2014

0 votos

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

Más respuestas (1)

baiarassou
baiarassou el 2 de Jun. de 2014

0 votos

i have done it before, thank u

Categorías

Más información sobre Simulink Functions en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 26 de Mayo de 2014

Respondida:

el 2 de Jun. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by