How to access Simulink Model callbacks like PreLoadFcn, InitFcn, StopFcn from matlab command window?

I need to access the commands present inside Model Callbacks like PreLoadFcn, PostLoadFcn, InitFcn, StartFcn, StopFcn from the matlab command line for some scripting purpose. Is there any way to do with some inbuilt functions or any other way?

 채택된 답변

Model='f14';
open_system(Model)
get_param(Model,'PreLoadFcn');
set_param(Model,'PreLoadFcn','YourFunctionName')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2021년 7월 29일

답변:

2021년 7월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by