필터 지우기
필터 지우기

Simulink/Matlab coder compile-time calculation

조회 수: 2 (최근 30일)
Evan Slatyer
Evan Slatyer 2015년 3월 18일
답변: Ketan 2015년 3월 18일
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

답변 (1개)

Ketan
Ketan 2015년 3월 18일
I think calling normpdf via "coder.const" will do what you want

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by