MATLAB: Time to run a program

time

Hi,
I have a program running since yesterday. I am wondering if there is a way to test and approximate how much time a program should take to finish because i am wondering what if it keeps on running for ages.

Best Answer

If your program runs a loop:
  • you can print at which iteration it is with disp
  • or you can use waitbar (but unless they improved its performance it's gonna slow you down a bit)
  • or use one of the many ASCII waitbar submissions (won't impact on the program as much as a graphical bar)