How can I stop a batch file when it is running too long in MATLAB 7.13 (R2011b)?
Ältere Kommentare anzeigen
Here’s what I’d like to do, and wondering if there’s a way to do it with TIMER in matlab--
%run m-file bla.m
>>bla
%do matlab stuff in bla.m
‘hello world’
% make a call to command line DOS batch file
! Run.bat
%if the process ‘run.bat’ gets hung up, and doesn’t finish after 10 seconds, terminate it (^c) and continue running bla.m
‘process run.bat did not finish…’
return
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!