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
  • License: Freeware
  • Last update: 5 years ago
  • Total downloads: 90
  • Price: Free |
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Ikaro Silva (10 other programs)
See full specifications

scripts default icongetvarargin (Scripts) Publisher's description

Utility function that makes it easier to work with variable number of input arguments.

Utility function that makes it easier to work with variable number of input arguments. GETVARARGIN allows:

*An optional logical check on the inputs (ie, check input type, range etc), issuing an error on the calling function if condition are not met.

*An easy way to assign default values

*Input variables can be '&' prefix before the variable name as string followed by the variable value

For example, a function that generates a tone using getvargin in the example attached can be called in any of these ways:

%sequential with respect to signature

%string-value pair

%Using default window which is hanning

Logical tests on input are optional,here tone uses a check to make sure the frequency is positive,a negative frequency will issue a specific error according to the logical test applied:

>> tone(-1000,1)
??? Error using ==> tone at 15
Input Error Using:

Argument f is f<0

System Requirements:

MATLAB 7.0.1 (R14SP1)
Program Release Status: New Release
Program Install Support: Install and Uninstall

Is getvarargin (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.