How do I completely remove a Simulink project reference from MATLAB?

28 ビュー (過去 30 日間)
Chris Hack
Chris Hack 2016 年 12 月 27 日
コメント済み: partha das 2022 年 8 月 21 日
I'm using R2016A and I would like to be able to remove a Simulink project in MATLAB but it turns out that it seems virtually impossible to do so. Here's the situation:
I created a project from a model that referenced C source code outside of the directory where the project was located. This resulted in the project being placed the root directory of my main code storage space, which means that I can't create new separate projects in folders that would be at the same directory level or even a couple of levels up from the actual Simulink model location. I've tried deleting the .prj project file, but the "create project from model" option isn't available in any model that's within the main directory structure. The only option is to open the project, at which time the .prj file that I deleted gets recreated by MATLAB.
I've examined almost every directory in the main MATLAB path and I can't find anything I could do to remove the project. I don't want to just delete the old files from the current project and add the new ones as I would like to have multiple SEPARATE projects within the directory structure I already have defined. Please help, as figuring this out is a necessity to complete some ongoing projects.
Thanks in advance.
-Chris Hack

採用された回答

Gavin Walker
Gavin Walker 2017 年 6 月 29 日
To delete a Simulink Project, delete the .SimulinkProject folder in the root folder of the project. (This is a hidden Windows folder.)
  3 件のコメント
Steve Moon
Steve Moon 2021 年 6 月 30 日
Where the heck is the .SimulinkProject folder????????
partha das
partha das 2022 年 8 月 21 日
Delete the folder named 'resources' which is located in your C:\

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDependency Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by