target.get

Retrieve target feature object from MATLAB memory

Description

example

targetFeatureObject = target.get(targetFeatureClass, targetFeatureObjectId) retrieves a target feature object from MATLAB® memory.

Examples

Remove Target Feature Object

This example shows how you can remove a target.LanguageImplementation object associated with an object identifier, myLanguageImplementationID.

Retrieve the object from MATLAB memory.

objectToRemove = target.get('LanguageImplementation', myLanguageImplementationID);

Remove the object.

target.remove(objectToRemove);

Input Arguments

collapse all

Specify the class of the object that you want to retrieve. For example, to retrieve:

  • A target.Processor object, specify 'Processor' .

  • A target.LanguageImplementation object, specify 'LanguageImplementation'.

Specify the unique identifier of the object that you want to retrieve, that is, the Id property value of the object.

Output Arguments

collapse all

Retrieved target feature object. For example:

  • If targetFeatureClass is 'Processor', the returned object is a target.Processor object.

  • If targetFeatureClass is 'LanguageImplementation', the returned object is a target.LanguageImplementation object.

Introduced in R2019a