windows - how to stop a running script in Matlab -
this question has answer here:
- how abort running program in matlab? 1 answer
i write long running script in matlab, e.g.
tic; d = rand(5000); [a,b,c] = svd(d); toc;
it seems running forever. becasue press f5 in editor window. cannot press c-break stop in matlab console.
i want know how stop script. current use task manager kill matlab, silly.
thanks.
matlab says this- m-files run long time, or call built-ins or mex-files run long time, ctrl+c not stop execution. typically, happens on microsoft windows platforms rather unix[1] platforms. if experience problem, can matlab break execution including drawnow, pause, or getframe function in m-file, example, within large loop. note ctrl+c might less responsive if started matlab -nodesktop option.
so don't think option exist. happens many matlab functions complex. either have wait or don't use them!.
Comments
Post a Comment