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

시뮬링크를 실행할 때, workspace 의 값을 초기화 하기 위하여 m파일을 실행한 후, 시뮬링크를 실행합니다. 그렇지 않으면 시뮬레이션 첫 부분에 이상동작을 하게 됩니다.
이 과정이 꽤나 번거로운데 시뮬링크를 실행할 때 작업공간도 같이 초기화하게끔 설정할 수는 없을까요?

Antworten (1)

Angelo Yeo
Angelo Yeo am 29 Aug. 2023

0 Stimmen

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

Kategorien

Mehr zu 모델링 finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Gefragt:

am 12 Jan. 2022

Beantwortet:

am 29 Aug. 2023

Community Treasure Hunt

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

Start Hunting!