Main Content

compiler.codetools.deployableSupportPackages

Determine support packages used by files

Description

example

spstr= compiler.codetools.deployableSupportPackagesreturns a list of all support packages usable byMATLAB®Compiler™.

example

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

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, theEphemeris Data for Aerospace Toolboxadd-on is installed.

Run the function usingplanetEphemeris.m,位于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,每分钟,.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

Introduced in R2021b