About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconCheck the number of arguments to a function (Scripts) Publisher's description

error(nargchk(minargs, maxargs, nargin, 'struct'))

nargchk is used almost exclusively in one way:

error(nargchk(minargs, maxargs, nargin, 'struct'));

The third and fourth arguments are always the same, and you always wrap it in an error call.

This stupidly simple function saves you typing, and prettifies your code by wrapping the above line into something more readable, namely

CheckNumberArgs(minargs, maxargs);

System Requirements:

MATLAB 7.10 (2010a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

Check the number of arguments to a function (Scripts) Tags:

Click on a tag to find related softwares

Is Check the number of arguments to a function (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.