Skip to Main Content Skip to Search
Product Documentation

packNGo - Package model code in zip file for relocation

Syntax

packNGo(buildinfo, propVals...)

propVals is optional.

Arguments

buildinfo

Build information returned by RTW.BuildInfo.

propVals (optional)

A cell array of property-value pairs that specify packaging details.

To...Specify Property...With Value...
Package all model code files in a zip file as a single, flat folder'packType''flat' (default)
Package model code files hierarchically in a primary zip file that contains three secondary zip files:
  • mlrFiles.zip — files in your matlabroot folder tree

  • sDirFiles.zip — files in and under your build folder

  • otherFiles.zip — required files not in the matlabroot or start folder trees

'packType''hierarchical'

Paths for files in the secondary zip files are relative to the root folder of the primary zip file.

Specify a file name for the primary zip file'fileName''string'

Default:'model.zip'
If you omit the .zip file extension, the function adds it for you.

Include only the minimal header files required to build the code in the zip file'minimalHeaders'true (default)
Include all header files found on the include path in the zip file'minimalHeaders'false

Description

The packNGo function packages the following code files in a compressed zip file so you can relocate, unpack, and rebuild them in another development environment:

You might use this function to relocate files so they can be recompiled for a specific target environment or rebuilt in a development environment in which MATLAB is not installed.

By default, the function packages the files as a flat folder structure in a zip file named model.zip. You can tailor the output by specifying property name and value pairs as explained above.

After relocating the zip file, use a standard zip utility to unpack the compressed file.

Examples

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS