compiler.codetools.deployableSupportPackages - Determine support packages used by files - MATLAB (original) (raw)

Main Content

Determine support packages used by files

Since R2021b

Syntax

Description

[spstr](#mw%5F6e6071e3-3645-4d61-aae4-187c8459e95b) = compiler.codetools.deployableSupportPackages returns a list of all support packages usable by MATLAB® Compiler™.

example

[spstr](#mw%5F6e6071e3-3645-4d61-aae4-187c8459e95b) = compiler.codetools.deployableSupportPackages([Files](#mw%5F8cff3986-597f-4e56-953f-7305aa53d25b)) returns a list of all support packages used by Files.

example

Examples

collapse all

List Installed Deployable Support Packages

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 Deployable Support Packages Used by File

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

Files — List of files

string scalar | cell array of character vectors | string array

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

spstr — List of support package names

string array

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

Data Types: string

Version History

Introduced in R2021b