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

14 vues (au cours des 30 derniers jours)
WanYu
WanYu le 10 Mai 2020
Commenté : Ryan Livingston le 12 Avr 2023
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?

Réponse acceptée

Ameer Hamza
Ameer Hamza le 10 Mai 2020
Modifié(e) : Ameer Hamza le 10 Mai 2020
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 commentaires
MINGWEN
MINGWEN le 9 Avr 2023
still confusion for how to fix it . I am not clear for your answer ,could you give a guide?
Ryan Livingston
Ryan Livingston le 12 Avr 2023
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

Connectez-vous pour commenter.

Plus de réponses (1)

Darshan Ramakant Bhat
Darshan Ramakant Bhat le 11 Mai 2020
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 :
  1 commentaire
WanYu
WanYu le 11 Mai 2020
Hi,
Thanks for answering. The link do help.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by