Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
Contest
MathWorks.com

MATLAB CentralFile Exchange > Mathematics > General > Example: Using Nested Functions for Timers
 Example: Using Nested Functions for Timers   
 
Download Now:
  Rating:
  Code Metrics:

 What is this?
  Author: Scott Hirsch
  Summary: Example code from MATLAB News & Notes article on nested functions.
  MATLAB Release: R14
  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.
   

File Details  
 
  File Id: 8452 Average rating: 4.33
  Size: 0 KB # of reviews: 3
  Submitted: 2005-09-08 Downloads: 708
  Subscribers: 0  
  Keywords: nested function, timer, real-time, callback, function handle
   


User Reviews
Number of Reviews: 3
Date: 2007-11-15
From: Gunter Wahl (gunter.wahl@ident-technology.com)
Rating:
Comments: A bit more explanation of the way (repetitions?) to call the routine would be nice.
Date: 2006-10-19
From: master user
Rating:
Comments:
Date: 2006-09-29
From: Bernhard Hampel-Vogedes (hampel-vogedes@rheinmetall-de.com)
Rating:
Comments:


Review this Submission
Bold Indicates Required Information
Overall Rating:
 General Comments  
 1  Poor
 2  Needs Improvement
 3  Fair
 4  Good
 5  Excellent
 
Comments:    
First Name:  
Last Name:  
E-mail:  
Organization:  
 
Spam Prevention:  
Please type the characters you see in the picture above.  
   
 

 
  Download Now:



Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Related Topics