フィルターのクリア

How can I create a Simulink Project from existing files?

1 回表示 (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2016 年 11 月 25 日
編集済み: MathWorks Support Team 2023 年 4 月 18 日
I have some Simulink models, MATLAB functions and scripts. How can I create a Simulink Project and include all the existing files?

採用された回答

MathWorks Support Team
MathWorks Support Team 2023 年 4 月 12 日
編集済み: MathWorks Support Team 2023 年 4 月 18 日
You can either create a blank project and add all the files in the project, or create the project directly from a Simulink model.
To create a blank project, you can follow the documentation page by running the following command in MATLAB 2016b:
>> web(fullfile(docroot, 'simulink/ug/create-a-new-project-to-manage-existing-files.html'))
Or, for latest release documentation, refer to:
:
1. On the MATLAB Home tab, click Simulink
 or select New > Simulink Project.
2. In the Simulink Start Page, select 'Blank Project'
3. Fill in the project name and Project Folder. Please put the folder where you store all your existing files to the Project Folder 
Then you should be able to see the Simulink Project User Interface. You can add the existing files according to this documentation:
https://www.mathworks.com/help/simulink/ug/add-files-to-the-project.html
4. The project has been created but there will be no files in the project. In order to see all the files in the project folder, select "All Files View"
5. Select all the files and folders in the view, right click the files and select "Add Folder to Project (Including Child Files)"
6. After adding all the files to the project, you can switch back to the "Project Files View"
You can also add folders to Project Path. The folder in project path will be added to MATLAB path when you open the project and will be removed from MATLAB path when you close the project. You can find more information in the following documentation page:
https://www.mathworks.com/help/simulink/ug/specify-project-path.html
7. To add folders to project path, simply select the folders, right click and select "Project Path" and select either "Add to Project Path
" or "Add to the Project Path (Including Subfolders)" depending on your use case.
To create a project from a Simulink Model, you can follow the documentation page here:
https://www.mathworks.com/help/simulink/ug/create-a-project-from-a-model.html
1. Open the Simulink model, select "File" -> "Simulink Project
" -> "Create Project from Model"
2. Fill the Project name and Project folder
, select the files you would like to be included in the project and click Create
The project should be created with all selected files included in the project. By default, the folders selected should be already added in the project path.
  2 件のコメント
Mikhail
Mikhail 2016 年 11 月 25 日
Images are not visible.
Qu Cao
Qu Cao 2017 年 1 月 9 日
You may try a different browser to see the images.

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

その他の回答 (1 件)

Gavin Walker
Gavin Walker 2018 年 2 月 23 日
In R2017b, you can now create a new Simulink Project directly from a folder:

カテゴリ

Help Center および File ExchangeCreate Large-Scale Model Components についてさらに検索

タグ

タグが未入力です。

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by