target.export

Export target feature data

Description

target.export(targetFeatureObject) exports the specified target feature data to a MATLAB® function, registerTargets.m. Use the generated file to share target feature data between sessions and computers. When you run registerTargets.m, it recreates the target feature object and adds the object to MATLAB memory.

target.export(targetFeatureObject,Name,Value) exports the specified target feature data using one or more name-value pair arguments.

Examples

Share Hardware Device Data

For a workflow example that uses this function, see Export Hardware Device Data .

Input Arguments

collapse all

Specify the target feature object that you want to export.

Example: target.export(myTargetFeatureObject);

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: target.export(myTargetFeatureObject,'FileName', 'exportMyTargetFeatureFn');

Specify name of MATLAB function file that contains exported target feature data.

  • true –– Overwrite MATLAB function file if it exists.

  • false –– Generate error if MATLAB function file exists. File is not overwritten.

Introduced in R2019b