Error: " The invoked code did not call entry-point function "

23 次查看(过去 30 天)
An error came out after I execute my code:
"
The invoked code did not call entry-point function
"
What should I do or how to resolve this error?

采纳的回答

Ameer Hamza
Ameer Hamza 2020-5-10
编辑:Ameer Hamza 2020-5-10
You need to write code that will call your function preprocess. It seems that the line you have written does not call this function. Coder uses this to automatically infer the size and types of input and output variables.
  4 个评论
MINGWEN
MINGWEN 2023-4-9
still confusion for how to fix it . I am not clear for your answer ,could you give a guide?
Ryan Livingston
Ryan Livingston 2023-4-12
Suppose you are generating code for a function yourFunction.m. Then you need to write a script testYourFunction.m that calls yourFunction
% testYourFunction.m
% Make sure to call yourFunction with all the input sizes you want to use
yourFunction(arg1,arg2);
yourFunction(arg3,arg4);
Then provide testYourFunction as the code snippet to run in the Coder app prompt shown above

请先登录,再进行评论。

更多回答(1 个)

Darshan Ramakant Bhat
As Ameer told your test file should call the entry-point function to automatically infer the types. More detail is present in the below documentation :

类别

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