Unknown Matlab Error #35
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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?
0 comentarios
Respuestas (1)
Sandip Kumar
el 29 de Oct. de 2014
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
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!