Effacer les filtres
Effacer les filtres

Remplace nargchk by nargincheck problem

1 vue (au cours des 30 derniers jours)
Baptiste
Baptiste le 3 Juin 2016
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!

Réponse acceptée

Jos (10584)
Jos (10584) le 3 Juin 2016
Just use
narginchk(inmin,inmax)
No need for using error.
  1 commentaire
Baptiste
Baptiste le 3 Juin 2016
Ok! Get it!
Thank you!

Connectez-vous pour commenter.

Plus de réponses (1)

SHRISTI TIWARI
SHRISTI TIWARI le 26 Oct 2019
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.

Catégories

En savoir plus sur Argument Definitions dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by