How to delete mdl file with comand line?
4 ビュー (過去 30 日間)
古いコメントを表示
Hello, I have a task to create automatically mdl (simulink) model with command line, which can be done by this line: new_system('new'). I have the m file which when executed loads simulink library, creates new mdl and creates whole model that I need. I know that the line delete('new.mdl') will errase mdl file from my working catalog, but when I execute once again my m file it sais that such model ("new") already exist. Is there any posibility to absolutely errase from computer memory mdl object?
0 件のコメント
採用された回答
Arnaud Miege
2011 年 5 月 17 日
It's probably because the file new.mdl, although erased, is still loaded in memory. Try using bdclose on the Simulink model to close it before delete the file.
HTH,
Arnaud
1 件のコメント
その他の回答 (0 件)
参考
カテゴリ
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!