Disable save dialog in Simulink

4 次查看(过去 30 天)
MC
MC 2018-3-7
Hello! I'm wondering if it's possible to programmatically disable the Save dialog which popups when you close a Simulink model? I.e when you press the X or similar. I've tried using bdclose and close_system in CloseFcn callback and even in PreSaveFcn callback but neither seems to work as the dialog still appears.
Best Regards MC
  1 个评论
Jyotish Robin
Jyotish Robin 2018-3-21
Using the below 2 commands:
>> save_system(modelName)
>> close_system(modelName)
in the 'close_fcn' callback can hopefully help you.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Model, Block, and Port Callbacks 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by