setNameSpace
Set namespace for C++ function entry in code replacement table
Description
setNameSpace(
specifies the namespace for a C++ function entry in a code replacement table.hEntry,nameSpace)
During code generation, if the function entry is matched, the software emits the
namespace in the generated function code (for example,
std::sin(tfl_cpp_U.In1)).
If you created the function entry by using or hEntry
= RTW.TflCFunctionEntry (did not use hEntry =
MyCustomFunctionEntryregisterCPPFunctionEntry), before calling the
setNameSpace function, enable C++ support for the function entry
by calling the enableCPP function.
Examples
Input Arguments
Version History
Introduced in R2010a