What to do after getting message :-matlab:m​atlab.inte​rnal.langu​age.intros​pective.er​rorDoccall​back['name of main criptfile', ' path of calledfunction, line number when clbp command is executed].

I am running feature extraction code using completed local binary pattern descriptor for which i am using function clbp.m which is called four times from another function. When i run the main script file, i get message : matlab:matlab.internal.language.introspective.errorDoccallback['name of main scriptfile', ' path of called function, line number when clbp command is executed].
However program is running. Should i ignore the warning or any changes are to be done? Sincere thanks!

댓글 수: 8

There would have been more information before that, such as "index out of range"; we need that other information.
I am getting the message " Warning: NARGCHK will be removed in a future release. Use NARGINCHK or NARGOUTCHK instead.". Is it causing the error messsage? When i do single stepping, entire program is getting executed for all images. Otherwise also i am able to generate features for entire image database. I saw the warnig and wanted to clarify. The fuction uses "nargchk" command to check input arguments. Thanks for quick reply!
I am not sure. A screen capture showing the errorDoccallback line and the lines before that would help. Possibly it is just from the warning.
If it is just from the warning, then the short term fix is to ignore it. If it is making it difficult to read the output, then there is a warning() call that can be used to turn it off. But the longer term fix is to rewrite the code to use NARGINCHK or NARGOUTCHK instead of NARGCHK.
Main script calls feature extraction function at line 68. Feature extraction function calls clbp function(currently named as patclbp) at lines 53, 54, 98 and 162. patclbp function uses 'nargchk ' command at line 32.
Screenshot is attached herewith.
As suggested by you, it will be the best to remove nargchk by narginchk. Will do and report the findings.
Yes, that is a warning, best to update the function.
how to know the updated function in the updated version of matlab?
Replace
error(nargchk(LOW,HIGH,nargin))
with
narginchk(LOW,HIGH)

댓글을 달려면 로그인하십시오.

답변 (1개)

카테고리

도움말 센터File Exchange에서 Argument Definitions에 대해 자세히 알아보기

제품

질문:

2019년 9월 29일

답변:

2023년 9월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by