MATLAB: How to replace sincos using the Target Function Library from Embedded Coder

Embedded Codersimulinksimulink codersincostfl

I am looking to replace the standard sincos operations with custom sincos operations optimized for my processor. How can I replace the sincos() functions in the generated code?

Best Answer

In Release 2011a, you can use the Target Function Library to replace the sincos function. See the attached example that illustrates this replacement.