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

조회 수: 11 (최근 30일)
WanYu
WanYu 2020년 5월 10일
댓글: Ryan Livingston 2023년 4월 12일
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
Darshan Ramakant Bhat 2020년 5월 11일
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