Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Calculating time for an external application executated from matlab

1 Ansicht (letzte 30 Tage)
LUSSI
LUSSI am 28 Nov. 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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 Kommentare
LUSSI
LUSSI am 29 Nov. 2012
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 am 30 Nov. 2012
what do you get if you type:
tic; system ( 'sleep 3' ); toc

Antworten (1)

Babak
Babak am 28 Nov. 2012
in MATLAB script
tic
% your calcs
time = toc
gives you the time in seconds.

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by