Main Content

compiler.codetools.deployableSupportPackages

Determine support packages used by files

Since R2021b

Description

example

spstr = compiler.codetools.deployableSupportPackages returns a list of all support packages usable by MATLAB® Compiler™.

example

spstr = compiler.codetools.deployableSupportPackages(Files) returns a list of all support packages used by Files.

Examples

collapse all

List all the installed deployable support packages on the system.

Run the function with no arguments.

spstr = compiler.codetools.deployableSupportPackages
spstr = 

  4×1 string array

    "Aerospace Ephemeris Data"
    "Aerospace Geoid Data"
    "Communications Toolbox Support Package for RTL-SDR Radio"
    "MATLAB Support Package for Raspberry Pi Hardware"

List all deployable support packages that are used by the specified file.

Install the support packages required by your MATLAB file. For this example, the Ephemeris Data for Aerospace Toolbox add-on is installed.

Run the function using planetEphemeris.m, which is located in matlabroot\toolbox\aero\aero.

spstr = compiler.codetools.deployableSupportPackages(...
   fullfile(matlabroot,'toolbox','aero','aero','planetEphemeris.m'))
spstr = 

    "Aerospace Ephemeris Data"

Input Arguments

collapse all

List of files, specified as a character vector, a string scalar, a string array, or a cell array of character vectors. Each file must be a MATLAB function, class, or app of one of the following types: .m, .p, .mlx, .mlapp, or a valid MEX file.

Example: {'function1.m',function2.m'}

Data Types: char | string | cell

Output Arguments

collapse all

A list of support package names, specified as a string array.

Data Types: string

Version History

Introduced in R2021b