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.
- handle
- Handle of the previously created waitbar to update.
- message
- Message to display in the waitbar.
- property, value
-
- 'Title'
- Title displayed in the waitbar interface.
- 'Height'
- Height of h in pixels.
- 'Width'
- Width of h in pixels.
- 'visible'
- Specifies if h is visible. Valid values are 0 (hidden) or 1 (visible)
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');