Rank: 946 based on 146 downloads (last 30 days) and 1 file submitted
photo

Jeremy

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Jeremy
Updated   File Tags Downloads
(last 30 days)
Comments Rating
25 Oct 2011 Progress monitor (progress bar) that works with parfor Displays the percentage of parfor iterations which have completed. Author: Jeremy parfor, progress bar, progressbar, status, progress, progress monitor 146 12
  • 4.73333
4.7 | 16 ratings
Comments and Ratings by Jeremy View all
Updated File Comments Rating
16 May 2014 Progress monitor (progress bar) that works with parfor Displays the percentage of parfor iterations which have completed. Author: Jeremy

Erik: Depends how slow each iteration of your loop is. If each iteration takes a while to run, this won't impact execution time. If each iteration is very fast, it could. You'll have to benchmark for more specifics, I've only used it on slow problems. If necessary, a quick fix to speed this up would be to change the path of parfor_progress.txt to be on a ramdisk.

15 Jun 2012 Conditionally colored line plot Plots (2D line) graph split into two colors above and below a given threshold value Author: Matt Tearle

It works well as described, but could be improved by handling multiple thresholds.

05 Mar 2012 Progress monitor (progress bar) that works with parfor Displays the percentage of parfor iterations which have completed. Author: Jeremy

Ashin,

I develop on Linux and I've never seen this problem. So it's likely that it is not a Linux problem in general, but it's specific to your particular setup. Maybe something to do with the character encoding on your system?

As a test, run this and see what it outputs:

disp(['aaa', char(8)])

The output should be just aa, because char(8) is a backspace. This is the technique I used in parfor_progress to delete the previous line, so maybe the backspace isn't working on your Linux machine for some reason?

Or does anyone know of a more universally portable way of doing this?

11 Oct 2010 AREA3 Filled area plot in 3d. Author: Dirk Heber

Change break; to return; on line 95 and it seems to still work fine on recent versions of MATLAB.

Comments and Ratings on Jeremy 's Files View all
Updated File Comment by Comments Rating
02 Nov 2014 Progress monitor (progress bar) that works with parfor Displays the percentage of parfor iterations which have completed. Author: Jeremy Bauyrzhan Aubakir

I would like to say: Thank you very much for such a nice script

02 Nov 2014 Progress monitor (progress bar) that works with parfor Displays the percentage of parfor iterations which have completed. Author: Jeremy Anibal

31 Oct 2014 Progress monitor (progress bar) that works with parfor Displays the percentage of parfor iterations which have completed. Author: Jeremy Florian

31 Oct 2014 Progress monitor (progress bar) that works with parfor Displays the percentage of parfor iterations which have completed. Author: Jeremy Vicky P

Jeremy: First, thanks for writing this handy script. It is very useful.

I also found display issues in the linux terminal, which Ashin and Alessandro describe. However, I found a solution pretty quickly though I'm not an expert user of MATLAB at all.

I changed only 3 lines, changing all disp() calls to fprintf().

The char(8) trick works for fprintf() as well and is actually better for linux terminals.

Hope it is useful.

10 Oct 2014 Progress monitor (progress bar) that works with parfor Displays the percentage of parfor iterations which have completed. Author: Jeremy Alessandro Corbetta

Contact us