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

This is a simple but fast check, if two arrays contain any common element

C-Mex: anyEq

This is a simple but fast check, if two arrays contain any common element.
If no common element is found, the C-Mex is 30% to 50% faster than the equivalent Matlab expression "any(X(:) == y)" and much faster than "any(ismember(X, Y))" if Y is an array.
If a matching element is found early, this function returns very fast without testing the rest.
In opposite to the Matlab version, the C-mex does not need any temporary arrays.

R = anyEq(X, Y)
X, Y: Arrays, arbitrary size. The order of X and Y does not influence
the speed. Types: DOUBLE, SINGLE, (U)INT8/16/32/64, CHAR.
R: TRUE if X and Y have any common element.

Tested: Matlab 6.5, 2008a/b, 2009a, 2011b, 32/64 bit
LCC, BCC, OWC, MSVC 2008 and 2010, WinXP and Win7.
Assumed compatibility: Linux, MacOS.
Pre-compiled Mex: http://www.n-simon.de/mex

Suggestion and bugreports through the author page of the FEX or by email are appreciated.

System Requirements:

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

anyEq (Scripts) Tags:

Click on a tag to find related softwares

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