工程
R2026b工程帮助您整理工作和进行协作。使用工程来查找运行代码所必需的文件、管理和共享文件与设置,并与源代码管理进行交互。有关工程的详细信息,请参阅创建工程。
有关在软件开发过程中使用工程的详细信息,请参阅Develop and Share Software in MATLAB。
函数
工具
| 依赖关系分析器 | Visualize dependencies, find required files, and assess the impact of changes (自 R2023a 起) |
对象
主题
- 创建工程
在 MATLAB® 中创建工程,以整理您的工作并与他人共享。
- 管理工程文件
添加、移动、重命名和打开工程文件和文件夹。
- Develop and Share Software in MATLAB
Create a project, manage source control, build a package, and publish it to File Exchange.
- 分析工程依赖关系
查找整个工程或指定文件所需的文件,解决问题,以及控制用于附加功能和增量分析的选项。
- Release and Manage Package Dependencies and Versioning Using Projects
MATLAB Projects provide a structured environment for developing, managing dependencies, and sharing MATLAB code, Simulink® models, tests and requirements, data, apps, examples, and documentation.
- 比较 MATLAB 工程
您可以比较工程定义文件。当您比较文件夹时,MATLAB 会检测它们是否为工程根文件夹。MATLAB 查找并比较存储在
resources或.SimulinkProject文件夹中的工程定义文件。工程定义文件包含有关工程路径、工程设置、快捷方式、标签和引用工程的信息。此示例比较表明:要比较工程定义文件,请在“文件”面板中选择 PRJ 文件或工程根文件夹。右键点击您的选择,然后选择比较选定的文件/文件夹。当您在结果报告中选择节点时,比较工具会在底部窗格中显示更多详细信息。
- 大型工程组件化
使用引用工程组织大型工程。
- 共享工程
通过以下方式共享工程:打包为 zip 文件、通过电子邮件发送、打包为工具箱,或者在连接的源代码管理工具上公开发布。
- Reduce Test Runtime on CI Servers
Set up your project for CI in Jenkins® and reduce test suite runtime using dependency cache and impact analysis.
相关信息
精选示例
教学资源
编程:结构化代码
学习如何编写和记录函数,以及如何调试、注释和共享您的代码。
