필터 지우기
필터 지우기

Remplace nargchk by nargincheck problem

조회 수: 1 (최근 30일)
Baptiste
Baptiste 2016년 6월 3일
답변: SHRISTI TIWARI 2019년 10월 26일
Hello,
It's not a big problem, it's just to remove this annoying and spamming warning : "Warning: NARGCHK will be removed in a future release. Use NARGINCHK or NARGOUTCHK instead. "
So I come to the old function and remplace that:
function result = lbp(varargin)
error(nargchk(1,5,nargin));
By that:
function result = lbp(varargin)
error(narginchk(1,5));
That give "Error: nargincheck does not return any values" Where I doing wrong?
Thank you!

채택된 답변

Jos (10584)
Jos (10584) 2016년 6월 3일
Just use
narginchk(inmin,inmax)
No need for using error.

추가 답변 (1개)

SHRISTI TIWARI
SHRISTI TIWARI 2019년 10월 26일
code as
function [UffDataSets, Info, errmsg] = readuff(varargin)
error(nargchk(1, 4, nargin));
i am getting
>> readuff
Error using readuff (line 267)
Not enough input arguments.
please help me in that.

카테고리

Help CenterFile Exchange에서 Argument Definitions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by