フィルターのクリア

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 件のコメント
Baptiste
Baptiste 2016 年 6 月 3 日
Ok! Get it!
Thank you!

サインインしてコメントする。

その他の回答 (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 Center および File ExchangeArgument Definitions についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by