Rank: 637 based on 174 downloads (last 30 days) and 5 files submitted
photo

Steve Hoelzer

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Steve View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
31 Mar 2011 Screenshot Annoy-a-tron Annoy and confound fellow MATLAB users. Author: Steve Hoelzer fun, prank 9 0
08 Oct 2010 Screenshot progressbar Simple, efficient, and user friendly replacement for waitbar. Author: Steve Hoelzer gui tools, example, progress, progressbar, wait, waitbar 108 62
  • 4.91071
4.9 | 60 ratings
13 May 2009 Screenshot Droste Effect Tool Apply the Droste Effect to an image using a GUI or function call. Author: Steve Hoelzer droste, gui, image processing, demo, conformal mapping, special effects 21 1
  • 5.0
5.0 | 1 rating
25 Mar 2009 Screenshot figuresc Create a figure scaled relative to screen size. It's an easy way to make non-default size figures. Author: Steve Hoelzer gui tools, figure, plot 7 1
  • 5.0
5.0 | 1 rating
25 Mar 2009 Screenshot subfigure Create a figure within a grid-based layout. Like subplot, but for figures. Author: Steve Hoelzer gui tools, graphics, figure, subfigure, plot, subplot 29 4
  • 4.25
4.2 | 4 ratings
Comments and Ratings by Steve View all
Updated File Comments Rating
14 Jul 2014 progressbar Simple, efficient, and user friendly replacement for waitbar. Author: Steve Hoelzer

Awadhesh: The comments at the top of the file show two ways of handling nested loops. You can adapt those to your situation. Here's one way to do it:

progressbar(0,0,0) % Init 3 bars
for i = 1:m
progressbar([],0,0) % Reset 2nd and 3rd bar
for j = 1:n
% do stuff
progressbar([],j/n) % Update 2nd bar
end
for k = 1:p
% do stuff
progressbar([],[],k/p) % Update 3rd bar
end
progressbar(i/m) % Update 1st bar
end
progressbar(1)

19 Feb 2013 progressbar Simple, efficient, and user friendly replacement for waitbar. Author: Steve Hoelzer

sami: No, there is no way to relabel the progress bar without resetting it. I did that on purpose to keep it very simple.

17 Oct 2012 progressbar Simple, efficient, and user friendly replacement for waitbar. Author: Steve Hoelzer

Christopher: Good idea, but the problem with a cancel button is capturing the click and doing something right away while other code is busy running. See my old comment to "Jveer" for a bit more detail.

06 Jun 2012 progressbar Simple, efficient, and user friendly replacement for waitbar. Author: Steve Hoelzer

Francisco: I wrote and tested this code with R2010a (which is specified in the file info section at the top). I don't have an older Matlab release for testing, so you'll have to upgrade Matlab or patch the code yourself.

09 Apr 2012 progressbar Simple, efficient, and user friendly replacement for waitbar. Author: Steve Hoelzer

Boris: Thanks for the comments!

1. That would be nice, but I don't think it's possible inside progressbar itself. It might work to put a try-catch around your code and have the catch call progressbar(1) to close the bar.

2. I've tried, but can't get it work quite right. See my previous comments.

3. Also a good idea. I believe others have modified my function to work like you describe, but I've never gotten around to doing it myself.

Comments and Ratings on Steve's Files View all
Updated File Comment by Comments Rating
14 Jul 2014 progressbar Simple, efficient, and user friendly replacement for waitbar. Author: Steve Hoelzer Hoelzer, Steve

Awadhesh: The comments at the top of the file show two ways of handling nested loops. You can adapt those to your situation. Here's one way to do it:

progressbar(0,0,0) % Init 3 bars
for i = 1:m
progressbar([],0,0) % Reset 2nd and 3rd bar
for j = 1:n
% do stuff
progressbar([],j/n) % Update 2nd bar
end
for k = 1:p
% do stuff
progressbar([],[],k/p) % Update 3rd bar
end
progressbar(i/m) % Update 1st bar
end
progressbar(1)

14 Jul 2014 progressbar Simple, efficient, and user friendly replacement for waitbar. Author: Steve Hoelzer Ranjan, Awadhesh

Hello Steve,
I have a for loop and inside that i have 2 separate for loops. For example:
for i=1:N
for j=1:p
% my code here
end

for k=1:m
% my code here
end

end
How to use your progress bar to show the progress of all the three loops with the outermost loop being the main one?

18 Jun 2014 progressbar Simple, efficient, and user friendly replacement for waitbar. Author: Steve Hoelzer Franco, Jean Michel

10 Jun 2014 progressbar Simple, efficient, and user friendly replacement for waitbar. Author: Steve Hoelzer Chan, May

19 Jun 2013 progressbar Simple, efficient, and user friendly replacement for waitbar. Author: Steve Hoelzer Dhiraj

Contact us