我愿通过在法典中发出指挥命令,结束我目前的手稿(职能)。 返回只能终止目前的职能,而不是整个文字。 因此,回返不是。
What I am looking for is a command which does exactly what CTRL + C do. I have already seen this: how to stop execution and noticed that no one has yet provided a proper answer for this question in there either.
最后,我想在数字截止时终止整个行文:
hFig = figure( CloseRequestFcn ,{@closeHandler});
.
.
.
function closeHandler (src,evnt)
CTRL+C <--- I am looking for such a command
end
PS. function error() will not work either: Try this:
function terminateInCode()
hFig = figure( CloseRequestFcn ,{@closeHandler});
while(1)
plot(10*rand,10*rand, + );
pause(0.1);
end;
function closeHandler (src,evnt)
delete(hFig);
error( program terminated! );
end
end