Main Content

target.create

Create target object

Since R2019a

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.

Note

You can create an object and specify properties in one step for these classes:

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 Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

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');

Add a prefix to the IDs generated by target.create.

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'

Version History

Introduced in R2019a