MATLAB code break -
i have started running script on matlab takes days finish. usually, if changed mind , don't want wait finish , content intermediate results, highlight command window , press ctrl-c break code.
now, have run matlab. desktop got kinda stuck in background. when try restore desktop toolbar, not restore. know task manager process running , consuming memory , cpu performance. so, kinda stuck. don't want kill process because need intermediate values in workspace, , can't open desktop break code using ctrl-c.
is there solution? example, there command can used in command prompt act ctrl-c matlab?
i using matlab r2012b , windows 8.
quick try fix recent problem:
- try ty set higher priority matlab.exe in task manager. (right click -> priority -> higher normal). see if can window front.
some approaches avoid problem in future:
try optimize code. starters at: http://de.mathworks.com/help/matlab/matlab_prog/vectorization.html
use matlab compiler faster execution: http://de.mathworks.com/products/compiler/
include
drawnow
commands @ stratetic positions in code. allows matlab process event queue , capture ctr-c commands.save intermediate results output files. example write output file 30 min intermediate results. easyiest way
save(filename)
..mat
file workspace variables generated. can kill process in task manager, without loosing results.
Comments
Post a Comment