Main Content

loadTarget

Description

H = loadTarget(targetName) loads the target with its property Name set to targetName, and returns the Target object, H.

The function also adds related folders to the MATLAB® search path and refreshes the Simulink® menu and dialog customization.

example

Examples

collapse all

You can create a target with its property Name and load the target by using the Name.

Create a new target, hTgt, and save it.

hTgt = createTarget('My Target','ARM Cortex-M','c:/mytarget');
saveTarget(hTgt);

Load the same target, hTgtCopy.

hTgtCopy = loadTarget('My Target');

Input Arguments

collapse all

Name of the target, specified as a string.

Data Types: char

Output Arguments

collapse all

Handle to Target object.

Version History

Introduced in R2015a