필터 지우기
필터 지우기

Coder.ceval function is not working when calling a C Library function

조회 수: 11 (최근 30일)
Khaled Aldayeh
Khaled Aldayeh 2020년 1월 31일
편집: Raghu Boggavarapu 2021년 11월 26일
Hallo everybody ,
im trying to accelerate my Program on App designer by calling imfilter over a C code (assumed that it would be faster on a c code).
i used Codgen to generate the c library and then called it back using coder.ceval. unfortionatly MATLAB keeps giving me an error back that coder.Ceval is not supported in Matlab.
here is an Screenshot i took it after running the Code
ERROR Coder.val.PNG
can anyone Help ?
thanks a lot in Advance

답변 (1개)

Raghu Boggavarapu
Raghu Boggavarapu 2021년 11월 26일
편집: Raghu Boggavarapu 2021년 11월 26일
coder.ceval is not to be used in MATLAB simulation workflow. It is to be used only when you want to integrate external C code for code generation workflow. For your use case, isolate the coder.include and coder.ceval calls to new function and create a MEX for that function using coder and use the generated mex instead of coder.ceval.

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by