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

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

Respuestas (1)

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

Categorías

Más información sobre 모델링 en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!