Code covered by the BSD License  

Highlights from
Simple waitbar

2.5

2.5 | 2 ratings Rate this file 3 Downloads (last 30 days) File Size: 3.22 KB File ID: #16663
image thumbnail

Simple waitbar

by Rahul PN

 

01 Oct 2007 (Updated 01 Oct 2007)

Displays the progressbar on the figure specified.

| Watch this File

File Information
Description

This m-file allows to specify a waitbar on a figure where the user wants to display it. The sample usage of waitbar_new is as given.

function test
h = dialog('Units', 'Pixels', 'Position', [20 20 360 100],'visible','off');
h1 = uicontrol('Parent',h,'Units', 'Pixels', 'Position', [10 70 75 25],'String','Test','Callback',@test_button);
movegui(h,'center');
set(h,'visible','on');
function test_button(hObject,eventdata)
wh=waitbar_new(0, gcf, 'r', [10 30 300 14]);
%wh=waitbar_new(0, gcf, [0.8 .5 1]);
%wh=waitbar_new(0, gcf);
for i=1:10000
    waitbar_new(i/10000);
end
delete(wh);

MATLAB release MATLAB 6.5.1 (R13SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
15 Oct 2007 kusuma wardana

nice

26 Mar 2010 Jveer  
26 Mar 2010 Jveer

SLOWS DOWN CODE SIGNIFICANTLY!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui tools Rahul PN 22 Oct 2008 09:29:37
example Rahul PN 22 Oct 2008 09:29:37
waitbar Rahul PN 22 Oct 2008 09:29:37
simple waitbar Rahul PN 22 Oct 2008 09:29:37
progressbar Rahul PN 22 Oct 2008 09:29:37
simple progressbar Rahul PN 22 Oct 2008 09:29:37

Contact us at files@mathworks.com