Main Content

target.create

Create target object

Description

example

targetObject = target.create(targetType) creates and returns an object of the specified class.

example

targetObject = target.create(targetType,Name,Value) configures the object using one or more name-value arguments.

Examples

Input Arguments

collapse all

Specify class of object. For example, specifying:

  • 'Processor' creates a target.Processor object.

  • 'LanguageImplementation' creates a target.LanguageImplementation object.

  • 'Alias' creates a target.Alias object.

For the full list of supported types, see target.

Example: 'Processor'

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: myProc = target.create('Processor', 'Name', 'myProcessor', 'Manufacturer', 'myProcessorManufacturer');

Create a target object by copying values from an existing target object. For example:

myLangImp = target.create('LanguageImplementation', ...
                          'Name', 'myLanguageImplementation', ...
                          'Copy', 'ARM Compatible-ARM Cortex');

Create the target object with properties that are set to values that you specify.

Output Arguments

collapse all

The object that is created and returned. For example, the object is a:

  • target.Processor object if targetType is 'Processor'

  • target.LanguageImplementation object if targetType is 'LanguageImplementation'

  • target.Alias object if targetType is 'Alias'

Introduced in R2019a