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 iconanyExceed (Scripts) Publisher's description

Check if any element exceeds upper or lower limit
Equivalent Matlab expression

Check if any element exceeds upper or lower limit
Equivalent Matlab expression:
any(Array(:) < Lower) || any(Array(:) > Upper)
This Mex is faster especially for large arrays, because it returns after the first match is found and it does not create temporary arrays. For the 'finite' and 'absolute' options, this inplace method is a remarkable advantage.

Flag = anyExceed(Array, Lower, Upper, Options...)
Array: Array of any size. Accepted classes: DOUBLE, SINGLE, (U)INT8/16/32/64, CHAR.
Lower, Upper: limits as scalar values of the same type as Array.
Options: Optional strings to control the comparison. The options can be combined:
'finite': +-Inf values in [Array] are ignored.
'absolute': Compare absolute values.
'exclude': Exclude limit values:
Flag = any(Array(:) <= Lower) || any(Array(:) >= Upper)

Flag: TRUE if any element exceeds the limits, FALSE otherwise.

anyExceed(rand(1000), 0, 1) % FALSE
anyExceed(0:0.1:1, 0, 1, 'exclude') % TRUE
anyExceed([1, Inf, 2], 0, 2, 'finite') % FALSE
anyExceed(-10:10, 0, 10, 'abs') % FALSE
anyExceed(-10:10, -1, 10, 'abs', 'ex') % TRUE

Windows: mex -O anyExceed.c
Linux: mex -O CFLAGS="$CFLAGS -std=C99" anyExceed.c
Precompiled Mex: http://www.n-simon.de/mex
See anyExceed.c for more information.

Tested: Matlab 6.5, 7.7, 7.8, WinXP, 32 bit
Compatibility with Linux, OS-X and 64 bit addressing is assumed.

System Requirements:

MATLAB 7.8 (R2009a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

anyExceed (Scripts) Tags:

Click on a tag to find related softwares

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