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 Exchange에서 Simulink 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