Simulink/Matlab coder compile-time calculation

I've got a project here which uses some of Matlab's reasonably complicated functions (eg. normpdf) to define constants. Is there some easy way to tell the coder that I want it to run normpdf during compilation and just store the constant values, rather than creating a block of C/Verilog code that computes normpdf every time the chip starts up? Or do I have to hard-code the outputs from normpdf?
Thanks, Evan

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

回答:

2015-3-18

Community Treasure Hunt

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

Start Hunting!

Translated by