시뮬링크를 실행할 때마다, ***.m 파일을 같이 실행해주어야 하나요?

4 views (last 30 days)
Jooyong Park
Jooyong Park on 12 Jan 2022
Answered: Angelo Yeo on 29 Aug 2023
시뮬링크를 실행할 때, workspace 의 값을 초기화 하기 위하여 m파일을 실행한 후, 시뮬링크를 실행합니다. 그렇지 않으면 시뮬레이션 첫 부분에 이상동작을 하게 됩니다.
이 과정이 꽤나 번거로운데 시뮬링크를 실행할 때 작업공간도 같이 초기화하게끔 설정할 수는 없을까요?

Answers (1)

Angelo Yeo
Angelo Yeo on 29 Aug 2023
모델 콜백을 이용하면 모델을 처음 불러올 때 혹은 시뮬레이션을 시작할 때 등 특정 시점에 맞춰 함수를 호출할 수 있습니다.

Categories

Find more on 모델링 in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!