Replace simulink sincos block with embedded optimized simultaneous sin/cos function (Code Replacement Library)

I want the simulink block sincos to map to my microcontroller optimized simultaneous sin and cosine routine. The C function is:
void sincos(float32 radian, float32* PtrSin, float32* PtrCos);
Is there a problem in that the function return is void, and that the results are returned as pointers in the function arguments? Do I need to use createAndAddConceptualArg, createAndSetCImplementationReturn, and createAndAddImplementationArg? If so, what parameters should I pass to these matlab functions?
Thanks

답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2013년 3월 19일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by