stored here for personal use; see http://www.mathworks.com/matlabcentral/fileexchange/30297-consoleprogressbar for original