(Not recommended) Export project to zip
exports the project
proj to a zip file specified by
zipFileName. The zip archive preserves the project files,
structure, labels, and shortcuts, and does not include any source control
information. You can use the zip archive to send the project to customers,
suppliers, or colleagues who do not have access to your source control repository.
Recipients can create a new project from the zip archive by clicking
New in the Project Tool, and then in the start page,
exports the project using the specified
definitionType for the
project definition files, single or multiple. If you do not specify
definitionType, the project's current setting is used. Use
definitionType export option if you want to change project
definition file management from the type selected when the project was created. You
can control project definition file management in the preferences.
Open the airframe project and create a project object.
sldemo_slproject_airframe; proj = simulinkproject;
Export the project to a zip file.
Project, specified as a project object. Use
simulinkproject to create
a project object to manipulate a project at the command line.
zipFileName— Zip file name or path
Zip file name or path, specified as a character vector ending in the file
zipFileName is a
filename, Simulink® exports the file to the current folder. You can also specify a
fully qualified path name.
definitionType— Definition file type
Definition file type, specified as
slproject.DefinitionFiles.FixedPathMultiFile . Use
definitionType export option if you want to change
project definition file management from the type selected when the project
MultiFile is better for avoiding merging
issues on shared projects.
SingleFile is faster but is
likely to cause merge issues when two users submit changes in the same
project to a source control tool. If you need to work with long file paths,
Not recommended starting in R2019a
Starting in R2019a, instead of
simulinkproject and related functions,
functions in MATLAB®. The Simulink project API will continue to be supported, but, after R2019a, new features
might be available only if you use the new MATLAB project API. There are no plans to remove the Simulink project API at this time.
The new MATLAB project API is part of the R2019a functionality enabling you to use projects in MATLAB, with or without Simulink. You can now share projects with users who do not have Simulink.