Error in Matlab2017b coder: the extrinsic function "size" is not available for standalone code generation.
3 visualizaciones (últimos 30 días)
Pradeep Kumar Boggarapu el 13 de Sept. de 2023
m-scripting file is executing without errors. While generating the C-code using "Coder", i am getting the errors for the functions "Size" and "xmlread". Erros is attached for reference.
Denis Gurchenkov el 26 de Sept. de 2023
Editada: Denis Gurchenkov el 26 de Sept. de 2023
size() is supported for code generation, this is one of the basic functions that always works. To understand why the error happens, one needs to see the source code of the example. This is either a bug or some misconfiguration. Maybe you try to call size on the return value of an extrinsic function? If so, read the chapter on extrinsic functions here
As Matan said, xmlread() does not support code generation. You'd need to use coder.ceval to call to some thrid-party xml reading library.
> Any supporting documnet which contains the list of unsupported functions for the Matlab coder.
Documentation for each MathWorks toolbox function has the "extended capabilities" section at the bottom, and if the function supports code generation, that capability is listed there, along with any limitations. If there is no extended capabilities section, then the function does not support code generation.