필터 지우기
필터 지우기

Level 1 S-Function normalise state variable

조회 수: 2 (최근 30일)
Ryan
Ryan 2013년 7월 25일
As part of a 6DoF aircraft simulation that I am writing, I am using a Level 1 S-Function (was given it as a framework, may upgrade to Lvl 2 if necessary). As part of this simulation I need to normalise a quaternion. The code to normalise the quat is really easy, I just don't know how to modify the continuous state variables directly.
Thanks in advance, Ryan.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2013년 7월 25일
You can type "sfcndemo_limintm" at the MATLAB prompt to open a model that contains an S-function with a continuous state. Typically, the continuous state is updated in the flag==1 case. Look for the mdlDerivatives function.

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by