Time to run a program

조회 수: 1 (최근 30일)
joseph Frank
joseph Frank 2011년 8월 6일
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.

채택된 답변

Oleg Komarov
Oleg Komarov 2011년 8월 6일
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)
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 8월 6일
Though unfortunately all of the above have to be implemented _before_ the program is run. Once the program is running, there is no way to query the state of the program.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by