Although MATLAB is a self-contained environment for programming, in vibration control is often useful to interact with data and programs external to MATLAB.
Shell escape functions and MEX-files are two methods for calling our own C/C++ subroutines directly from MATLAB. These two methods, along with M-files, can be used to add new commands and functions to the MATLAB language. Shell escape functions make external stand-alone programs act like new MATLAB functions. MEX-files are dynamically linked subroutines that the MATLAB interpreter can automatically load and execute. Shell escape functions and MEX-files have several applications:
The MATLAB Engine Library is a set of routines that allows MATLAB to be called from our own programs, thereby employing MATLAB as a computation engine. Some of the things one can do with the MATLAB engine are
Call a math routine to invert a matrix or to compute an FFT from your own program. When employed in this manner, MATLAB is a powerful and programmable mathematical subroutine library.
Call a graphics routine to plot some data or to draw a 3-D colour surface from your own program. Used this way, MATLAB is a sophisticated graphics subroutine library.
The MATLAB engine operates by running in the background as a separate process from the C/C++ program.
Contact: Dr S M Veres, tel.:44-(0)121-414 4346, fax: 414 3143, e-mail: s.m.veres@bham.ac.uk
Back to main ANC page: http://www.eee.bham.ac.uk/ec_gr/anc