필터 지우기
필터 지우기

How to delete mdl file with comand line?

조회 수: 4 (최근 30일)
Tomas Iesmantas
Tomas Iesmantas 2011년 5월 17일
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?

채택된 답변

Arnaud Miege
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
Kaustubha Govind
Kaustubha Govind 2011년 5월 17일
To be more precise, you should use:
close_system('new')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by