target.get - Retrieve target objects from internal database - MATLAB (original) (raw)
Main Content
Retrieve target objects from internal database
Syntax
Description
[targetObject](#mw%5F4cc3e17e-2ba2-49d7-9845-22c5fe78d62b) = target.get([targetType](#mw%5F8beddc9e-9f51-43c9-8564-8442fc306186), [targetObjectId](#mw%5F562f1247-a9a9-4c36-8093-56428faaf97a))
retrieves a target object from an internal database.
[tFOList](#mw%5F7583768e-8cea-48f4-bbfe-63d1f2fb8ef8) = target.get([targetType](#mw%5F8beddc9e-9f51-43c9-8564-8442fc306186))
returns a list of targetType
objects that are stored in the internal database.
[tFOList](#mw%5F7583768e-8cea-48f4-bbfe-63d1f2fb8ef8) = target.get([targetType](#mw%5F8beddc9e-9f51-43c9-8564-8442fc306186), Name, Value)
returns a list of targetType
objects that have properties that match the name-value pairs.
Examples
This example shows how you can remove atarget.LanguageImplementation
object associated with an object identifier, myLanguageImplementationID
.
Retrieve the object from the internal database.
objectToRemove = target.get('LanguageImplementation', myLanguageImplementationID);
Remove the object.
target.remove(objectToRemove);
This example shows how to create a target.Board
object that provides MATLABĀ® with a description of processor attributes. It uses target.get
to retrieve the description of a supported processor.
Create a board object.
hostTarget = target.create('Board', 'Name', 'Host Intel processor');
Specify the processor for the board by reusing a supported processor.
hostTarget.Processors = target.get('Processor', ... 'Intel-x86-64 (Linux 64)');
Input Arguments
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'
.
For the list of supported classes, see target.
Specify the unique identifier of the object that you want to retrieve, that is, theId
property value of the object.
Output Arguments
Retrieved target object. For example:
- If targetType is
'Processor'
, the returned object is atarget.Processor
object. - If
targetType
is'LanguageImplementation'
, the returned object is atarget.LanguageImplementation
object.
For the list of supported classes, see target.
List of retrieved target objects.
Version History
Introduced in R2019a