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: 
Try this FEX file: <http://www.mathworks.com/matlabcentral/fileexchange/32101-progress-monitor--progress-bar--that-works-with-parfor>

You can easily modify it to return the iteration number instead of displaying a progress bar.
If you just want to know how much time is left approximately, you can run the program once record the max time and then do this

```
tStart = tic;
parfor i=1:n
  tElapsed = toc(tStart;)
  disp(['Time left in min ~ ', num2str( ( tMax - tElapsed ) / 60 ) ]);
  ...
end

```