Code covered by the BSD License  

Highlights from
waitmex: using a waitbar inside a C mexFunction

  • waitex WAITEX same as the waitexample mexFunction, just in M instead of C.
  • waitexample WAITEXAMPLE a C mexFunction that serves as an example for waitmex.
  • waitmex WAITMEX a small library for using a waitbar within a C mexFunction.
  • View all files
Be the first to rate this file! 2 Downloads (last 30 days) File Size: 5.67 KB File ID: #16076

waitmex: using a waitbar inside a C mexFunction

by Tim Davis

 

23 Aug 2007 (Updated 26 Nov 2007)

A set of C routines for creating, updating, and destroying a waitbar from within a mexFunction

| Watch this File

File Information
Description

waitmex provides for C-callable functions tha provide access to the MATLAB waitbar mechanism from within a C mexFunction.

In C, you can do the following:

h = waitbar_create (0,"please wait...") ;

waitbar_update (0.1, h) ;

waitbar_update (0.5, h, "half way ...") ;

waitbar_destroy (h) ;

which are equivalent to the following MATLAB M-file statements, respectively:

h = waitbar (0, 'Please wait...') ;

waitbar (0.1, h) ;

waitbar (0.5, h, 'half way...') ;

close (h) ;

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
27 Aug 2007

Minor glitch in example mexFunction.

28 Aug 2007

update not working

26 Nov 2007

changed Windows-style files (extra control-M) to Unix/Linux to be consistent with the rest of my files.

Tag Activity for this File
Tag Applied By Date/Time
waitbar Tim Davis 22 Oct 2008 09:24:16
mexfunction Tim Davis 22 Oct 2008 09:24:16
utilities Tim Davis 22 Oct 2008 09:24:16

Contact us at files@mathworks.com