I really like examples that involve hardware because they are flashy and you can physically see things happening. The MathWorks provides several toolboxes for connecting to various types of hardware, ranging from data and image acquisition boards to stand alone instruments.
What I like about this nifty demo is that it combines both Data Acquisition Toolbox and Image Acquisition Toolbox to do motion and noise detection. Once the program detects some motion or noise, it starts recording video and audio for a specified number of seconds. It's also very simple to try out, because it only requires an off-the-shelf webcam (I'm using a Logitech USB webcam) and a soundcard which is already installed on my laptop.
Take a look at this short recording I made. I tested this out at a hotel in Kalamazoo, MI (I was there for a seminar).
Anybody doing hardware interfaces? Tell me about it here. I would be interested in hearing about simple examples that you can do with a webcam or a sound card (so that I can try it out!). And please post them on the File Exchange!
Get the MATLAB code
Published with MATLAB® 7.6