target.remove

Remove target feature object from MATLAB memory

Description

example

target.remove(targetFeatureObject) removes the target feature object from MATLAB® memory.

example

target.remove(targetFeatureClass, targetFeatureObjectId) removes the target feature object specified by class and identifier.

Examples

Remove Target Feature Object From Memory

You can specify and save a hardware device implementation to MATLAB memory.

armv8 = target.create('LanguageImplementation', ...
                      'Name', 'Armv8-A LP64');
a53 = target.create('Processor', 'Name', 'Cortex-A53', ...
                    'Manufacturer', 'ARM Compatible');
a53.LanguageImplementations = armv8;
target.add(a53)

When target feature objects are not required, you can use the function to remove the objects from MATLAB memory.

To remove only the target.Processor object, run:

target.remove(a53)
or:
target.remove('Processor', 'ARM Compatible-Cortex-A53');

Input Arguments

collapse all

Specify the target feature object that you want to remove.

Specify the class of the target feature object that you want to remove. For example:

  • If the class is target.Processor, specify 'Processor'.

  • If the class is target.LanguageImplementation, specify 'LanguageImplementation'.

Example: 'Processor'

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

Introduced in R2019a