File Exchange

image thumbnail

Example: Using Nested Functions for Timers

version 1.3.0.1 (1.18 KB) by

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

4.33333
3 Ratings

1 Download

Updated

View License

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.

Comments and Ratings (4)

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.

Gunter Wahl

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

master user

Bernhard Hampel-Vogedes

Updates

1.3.0.1

Updated license

1.3

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

1.2

Added comments.

1.1

Updated copyright.

MATLAB Release
MATLAB 7 (R14)

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

» Watch video