Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Calculating time for an external application executated from matlab

조회 수: 1 (최근 30일)
LUSSI
LUSSI 2012년 11월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello everybody !
I noticed one thing which i don't understand : I made a batch file to execute a finite element method software and when I execute it manually, the calculation lasts 5 minutes. When I use the dos (or system) function in Matlab to execute the same batch file, the calculating time is 25 minutes !!
I would like to understand why and if a solution exists.
Thank you !
  댓글 수: 3
LUSSI
LUSSI 2012년 11월 29일
Are you rrunning out of system memory when matlab is open? Nop !
How man processors do you have? 16 cores
Was your computer doing anything else at the same time? Nothing !
Is it repeatable? i.e. does it consistently take 5 times longer? Yes, it's repeatable !
Robert Cumming
Robert Cumming 2012년 11월 30일
what do you get if you type:
tic; system ( 'sleep 3' ); toc

답변 (1개)

Babak
Babak 2012년 11월 28일
in MATLAB script
tic
% your calcs
time = toc
gives you the time in seconds.
  댓글 수: 1
LUSSI
LUSSI 2012년 11월 28일
It's not my question but thanks ! ;-)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by