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
  • Last update: 5 years ago
  • Total downloads: 19
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Armin Schmidt
See full specifications

scripts default iconarrayadapt (Scripts) Publisher's description

arrayadapt provides a convient way to access mxArrays in MATLAB's .mex files.

arrayadapt provides a convient way to access mxArrays in MATLAB's .mex files.
The 'ArrayAdaptor' class template can be specialzed for one of the builtin
numeric types and a fixed number of dimensions. It allows for subscripted
indexing in additon to using C's []-indexing style.
An array which is constructed to be n-dimensional will only take 'n' arguments for
specifying the size of each dimension in the constructor. Specifying a different
number will result in a compiler-error. Furthermore, also the indexing
operator will take exactly 'n' arguments. Providing more or less than 'n' indices
will result in a compiler-error, again. One source of headache eliminated.

Currently, one- through three-dimensional arrays of any numeric type can be
wrapped, but extending to an arbitrary number of dimensions can be easily done
by implementing two simple class templates. One that takes care of construction
and one that encapsulates element access.

If debug mode is active for your mex-file, bounds-checking on element access
and type-checking on construction is done (at runtime, of course).

Since arrayadapt only provides a different interface to the underlying mxArray
it will never interfere, in any way, with existing code that changes the data
by other means (direct access, other wrappers, etc).

Along with arrayadapt comes an 'mx_traits' class template which is currently
used to provide a consistent way to get the mxClassID associated with the
numeric types in C.

On performance:
Any decent compiler should be able to strip away the arrayadapt extras completely.
On my systems (tested on gcc 4.5 and 4.6) there is no trace left of it in the
resulting assembly. No function calls, no classes, no nothing.

All files are also available directly via github (https://github.com/Dunkelschorsch/arrayadapt).

System Requirements:

MATLAB 7.12 (2011a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

arrayadapt (Scripts) Tags:

Click on a tag to find related softwares

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