waitbar

Creates a waitbar in the current session.

Syntax

h = waitbar(progress...)

h = waitbar(progress, handle, message, property, value...)

Inputs

progress
Progress to show in the waitbar. This must be a scalar value between 0 and 1. If there are no other inputs, the last waitbar created will be updated with the progress. If there are no existing waitbars, a new one will be created and updated with the progress.
Type: double
handle
Handle of the previously created waitbar to update.
Type: double
message
Message to display in the waitbar.
Type: string
property, value
'Title'
Title displayed in the waitbar interface.
Type: string
'Height'
Height of h in pixels.
Type: integer
'Width'
Width of h in pixels.
Type: integer
'visible'
Specifies if h is visible. Valid values are 0 (hidden) or 1 (visible)
Type: integer

Outputs

h
Handle of the waitbar created. close can be used to hide h. delete can be used to delete h.

Examples:

Creates a waitbar with a message:

h = waitbar(0.2, 'Please wait...');
Creates and updates a specific waitbar

h = waitbar(0.1);
waitbar (0.5, h, 'title', 'My waitbar');