Question: I am running a parfor loop in Matlab that takes a lot of time and I would like to know how many iterations are left. How can I get that info?

Answer: 
Something like a progress bar could be done similar to this...

Before the `parfor` loop :

```
fprintf('Progress:\n');
fprintf(['\n' repmat('.',1,m) '\n\n']);

```

And during the loop:

```
fprintf('\b|\n');

```

Here we have `m` is the total number of iterations, the `.` shows the total number of iterations and `|` shows the number of iterations completed. The `\n` makes sure the characters are printed in the `parfor` loop.
I created a utility to do this:

<http://www.mathworks.com/matlabcentral/fileexchange/48705-drdan14-parforprogress>