MATLAB: Does Control+C not break out of an infinite loop on UNIX

breakcctrl+ckillloopMATLABstop

I am trying to run the following code and then break out of it with CTRL-C or CTRL-Break
n=0;
while n < 1
n
end
I have sent the process a kill -2 signal and that did work.

Best Answer

As a workaround, please look up the process ID of MATLAB, and send it an interrupt using the following command:
kill -2 $pid
This is identical to ^C.