Filter löschen
Filter löschen

Simulink/Matlab coder compile-time calculation

2 Ansichten (letzte 30 Tage)
Evan Slatyer
Evan Slatyer am 18 Mär. 2015
Beantwortet: Ketan am 18 Mär. 2015
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

Antworten (1)

Ketan
Ketan am 18 Mär. 2015
I think calling normpdf via "coder.const" will do what you want

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by