工程文件管理
搜索、标记、批处理、共享和升级工程文件以及创建脚本。
通过工程,您可以查找所需的文件、管理并共享文件和设置以及与源代码管理进行交互,从而有助于您组织大型建模工程。请参阅什么是工程?并观看使用工程来协作、跟踪和合并更改并执行代码审查(4 分 50 秒)。
函数
主题
编写脚本
- Automate Project Tasks Using Scripts
Use the project API to automate project tasks manipulating files, including working with modified files, dependencies, shortcuts, and labels.
常见任务
- Open Recent Projects
Open recent projects from MATLAB® or Simulink®. - 创建常见任务的快捷方式
在工程中,可以为常见工程任务创建快捷方式,以便于查找和访问重要文件和操作。例如,查找并打开顶层模型,运行代码(例如,加载数据),以及仿真模型。要运行启动或关闭代码,请参阅 Automate Startup Tasks。 - Use Shortcuts to Find and Run Frequent Tasks
In a project, use shortcuts to make it easy for any project user to find and access important files and operations.
文件管理
- Group and Sort File Views
Control list or tree view columns and hide folders in project file views. - Search Inside Project Files and Filter File Views
Search inside models and other files across your project, and filter files to display. - Work with Project Files
Access common file operations using the context menu in a project. - Manage Shadowed and Dirty Models and Other Project Files
Avoid working on the wrong files using project tools, check for unsaved changes in models, and close models when closing a project. - Move, Rename, Copy, or Delete Project Files
Project refactoring tools help you find and fix impact with automatic updates when you rename, delete, or move files and folders. - Back Out Changes
Undo recent changes in a project.
文件标记
- Create Labels
In a project, use labels to organize files and communicate information to project users. - Add Labels to Files
In a project, use labels to organize files and communicate information to project users. - View and Edit Label Data
When you select a file in the project Files view, the file labels appear in the label editor view.
自定义任务处理
- Create a Custom Task Function
Create functions and run them on selected project files. - Run a Project Custom Task and Publish Report
Run a function on selected project files, view results, and create a report of the results.
共享工程
- Archive Projects
Package and share project files in an archive file, for example to share with others who do not have access to the connected source control tool. - Share Project by Email
To package and share project files on Windows®, you can email your project as an archive file. - Share Project as a MATLAB Toolbox
To package and share project files, create a MATLAB toolbox from your project. - 在 GitHub 上共享工程
要共享您的工程,请在 GitHub® 上使您的工程公开可用。
升级工程
- Check for Compatibility Issues and Upgrade Simulink Models Using Project Upgrade
This example shows how to upgrade all the models and check for compatibility issues in a project using the Project Upgrade tool.
测试工程
- Identify and Run Tests in MATLAB Projects
Identify and run tests in MATLAB projects.
关于工程
- 什么是工程?
使用工程可帮助您组织工作。查找所有必需的文件;管理和共享文件、设置以及用户定义的任务;与源代码管理进行交互。 - What Can You Do with Project Shortcuts?
In a project, use shortcuts to make it easy for any project user to find and access important files and operations. - Sharing Projects
Collaborate by sharing projects by email, archive file, template, MATLAB toolbox, or on GitHub.