3

The keybing CMD-C and CMD-point work in Qwerty keybinding in OSX's Matlab, but not with Dvorak keybinding in OSX's Matlab. There must be a bug in Matlab, which is causing this.

The problem is that when I push press play button for an algorithm in while loop. Many times, I want to stop it before the while-loop end.

The code below is not a low-level code since it can be stopped with Qwerty keyboard layout.

How can you stop process in OSX Matlab with Dvorak keyboard layout?

Example of the function that I am trying to stop

while 1;
     3
end
1
  • See my updated answer, CTRL-C visually and C is hardcoded to a specific key not changed when layout changed.
    – hhh
    Dec 16, 2013 at 9:41

2 Answers 2

1

Matlab's hardcoded CTRL-C combo

It is not CMD-C, it is CTRL-C VISUALLY. So press CTRL-C as written on your keyboard, not the C on Dvorak layout or any other layout. Matlab has hardcoded the interruption command to a key, not a letter.

Debugging

The way I do it is to create breakpoint with the looping vars

for ii=1...10000
     if isequal(ii,2000)  
         %Add here a breakpoint
     end
     ...
end

where the breakpoints make it possible to stop the execution. Also force-quiting Matlab is the other way. I know no other way to them.

2
  • 1
    This works! CTRL-C visually. Dec 16, 2013 at 9:52
  • For those with physical Dvorak keyboards, if Ctrl+C doesn’t work, try Ctrl+J.
    – Olathe
    Jun 21, 2018 at 20:18
1

It is CTRL-C, but Command-period works as well. If you have tried this and it's not working you are probably trying to interrupt a function that isn't interruptible. You can't interrupt a low-level function call, such as a big matrix multiply or backslash or something like that.

1
  • These commands work if you are using Qwery keyboard layout, but not with Dvorak keyboard layout that I am using. I tried also to press the Qwerty position of the keys unsuccessfully. So Matlab is messing something with different keyboard layouts. Dec 7, 2013 at 12:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .