when to use bdclose versus close_system
11 次查看(过去 30 天)
显示 更早的评论
is there a difference between bdclose('sys') and close_system('sys', 0)?
i'm wondering if there are any memory cleanup differences or other reason to choose one or the other to close a model.
0 个评论
回答(1 个)
Kushagra
2014-1-18
close_system cannot close system(or a simulink model) if it has unsaved changes. However, bdclose closes system unconditionally.
So, let's say you want to close a system which has unsaved changes, then you have to use save_system before going for close_system.
But, if you don't want to save the changes done in model, use bdclose.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!