View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Example: Using Nested Functions for Timers

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

Example: Using Nested Functions for Timers



08 Sep 2005 (Updated )

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

| Watch this File

File Information

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.

Required Products MATLAB
MATLAB release MATLAB 7 (R14)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
11 Mar 2013 Mate

Mate (view profile)

I can't download this file. The page say:

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

Comment only
15 Nov 2007 Gunter Wahl

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

19 Oct 2006 master user

29 Sep 2006 Bernhard Hampel-Vogedes

06 Jan 2010 1.1

Updated copyright.

18 Jun 2014 1.2

Added comments.

27 Oct 2014 1.3

Made available for download as an easy-to-install Toolbox file.

01 Sep 2016

Updated license

Contact us