Main Content

addAdditionalLinkObjPath

Add link object path to array of link object paths for code replacement table entry

Description

addAdditionalLinkObjPath(hEntry,path) adds a specified additional link object path to the array of additional link object paths for a code replacement table entry.

example

Examples

collapse all

This example shows how to use the addAdditionalLinkObjPath function with addAdditionalLinkObj to specify the path to an additional link object file fully for a code replacement table entry.

% Path to external object files
libdir = fullfile('$(MATLAB_ROOT)','..', '..', 'lib');

op_entry = RTW.TflCOperationEntry;
...
addAdditionalLinkObj(op_entry, 'addition.o');
addAdditionalLinkObjPath(op_entry, fullfile(libdir, 'bin'));

Input Arguments

collapse all

The hEntry is a handle to a code replacement table entry previously returned by instantiating a code replacement entry class, such as hEntry = RTW.TflCFunctionEntry or hEntry = RTW.TflCOperationEntry.

Example: op_entry

The path is a character vector or string scalar that specifies the full path to an additional link object. The character vector or string scalar can include tokens (for example, $myfolder$, where myfolder is a variable defined as a character vector, cell array of character vectors, or string array in the MATLAB® workspace).

Example: op_entry

Version History

Introduced in R2008a