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

 採用された回答

Sebastian Castro
Sebastian Castro 2014 年 5 月 27 日

0 投票

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

その他の回答 (1 件)

baiarassou
baiarassou 2014 年 6 月 2 日

0 投票

i have done it before, thank u

カテゴリ

ヘルプ センター および File ExchangeSimulink Functions についてさらに検索

製品

質問済み:

2014 年 5 月 26 日

回答済み:

2014 年 6 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by