target.create

Create target feature object

Description

example

targetFeatureObject = target.create(targetFeatureClass) creates and returns an object of the specified class.

example

targetFeatureObject = target.create(targetFeatureClass,Name,Value) configures the object using one or more name-value pair 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 classes, 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: myLangImp = target.create('LanguageImplementation', 'Name', 'myLanguageImplementation', 'Copy', 'ARM Compatible-ARM Cortex');Example: myProc = target.create('Processor', 'Name', 'myProcessor', 'Manufacturer', 'myProcessorManufacturer');

Create a target feature object by copying values from an existing target feature object.

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

Output Arguments

collapse all

The returned object is a:

  • target.Processor object if targetFeatureClass is 'Processor'

  • target.LanguageImplementation object if targetFeatureClass is 'LanguageImplementation'

  • target.Alias object if targetFeatureClass is 'Alias'

Introduced in R2019a