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 directory'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 directory tree

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

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

'packType''hierarchical'

Paths for files in the secondary zip files are relative to the root directory 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.

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 directory 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

See Also

Programming a Post Code Generation Command
Relocating Code to Another Development Environment

  


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