Unknown Matlab Error #35

조회 수: 5 (최근 30일)
Nathan
Nathan 2014년 10월 28일
답변: Sandip Kumar 2014년 10월 29일
Hello. I am trying to run a Simulink model that has an embedded matlab function in it, but the code refuses to run and I keep getting errors that I don't know how to solve.
Error using Initialize_pointing_Function (line 64)
Errors occurred during parsing of MATLAB function 'Kalman Filter'(#35)
Line 64 is simply the line that calls the simulink model and the Kalman Filter is the embedded function that is having the problems. My question is this. What does the #35 mean? I have looked all over and cannot find an answer. Secondly, is there a way to tell where specifically the errors are occurring in the embedded function?

답변 (1개)

Sandip Kumar
Sandip Kumar 2014년 10월 29일
The #35 is a link to the line of code in the MATLAB Fcn Block. Furthermore,
I think 'kalman' function is not supported for code gen, which is triggered during compilation of the MATLAB Fcn Block. Supported function list is here:
www.mathworks.com/help/releases/R2014b/coder/ug/functions-supported-for-code-generation--alphabetical-list.html
One way to bypass this limitation is to define the function as 'coder.extrinsic' at the beginning of the file:
coder.extrinsic('kalman')
Another way is to use the 'Kalman Filter' Simulink block directly:
www.mathworks.com/help/releases/R2014b/control/ref/kalmanfilter.html
Thanks, Sandip

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by