loadTarget

Syntax

H = loadTarget(targetName)

Description

example

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.

Examples

collapse all

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.

Introduced in R2015a