Code covered by the BSD License  

Highlights from
Example: Using Nested Functions for Timers

4.33333

4.3 | 3 ratings Rate this file 5 Downloads (last 30 days) File Size: 1.43 KB File ID: #8452

Example: Using Nested Functions for Timers

by Scott Hirsch

 

08 Sep 2005 (Updated 06 Jan 2010)

Example code from MATLAB News & Notes article on nested functions.

| Watch this File

File Information
Description

This is a simple example of how nested functions can simplify the writing of callback functions for writing continuously-running applications. Callback functions are used by timer objects and the various objects in the Test & Measurement Toolboxes (Data Acquisition Toolbox, Instrument Control Toolbox, Image Acquisition Toolbox) to associate MATLAB code with events such as timers.

This example contains the code included in the October, 2005 MATLAB News & Notes tip on this topic.

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
29 Sep 2006 Bernhard Hampel-Vogedes  
19 Oct 2006 master user  
15 Nov 2007 Gunter Wahl

A bit more explanation of the way (repetitions?) to call the routine would be nice.

Please login to add a comment or rating.
Updates
06 Jan 2010

Updated copyright.

Tag Activity for this File
Tag Applied By Date/Time
nested function Scott Hirsch 22 Oct 2008 07:59:39
timer Scott Hirsch 22 Oct 2008 07:59:39
realtime Scott Hirsch 22 Oct 2008 07:59:39
function handle Scott Hirsch 22 Oct 2008 07:59:39
callback Scott Hirsch 22 Oct 2008 07:59:39
nested function cronic 30 Mar 2012 10:24:59

Contact us at files@mathworks.com