Close a project programmatically without saving changes?

For certain operations in CI, when we run things and try to close them, a prompt comes up noting that there are unsaved changes and asking if we want to save or discard them. In CI of course no one can see the prompt and so the job times out. quit force doesn't seem to help, nor does bdclose('all') since that seems to act on Simulink systems and models, as opposed to projects.
Is there any way to programmatically close a project, even if it has unsaved changes?

回答 (1 件)

Joel
Joel 2023 年 6 月 13 日

0 投票

Hi,
Currently, the only way to programmatically close a project is by using the close command. Please refer to the documentation for more information.

カテゴリ

ヘルプ センター および File ExchangeCreate Large-Scale Model Components についてさらに検索

製品

リリース

R2021a

タグ

質問済み:

2022 年 10 月 20 日

回答済み:

2023 年 6 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by