Deactivate MEvent.CASE in Java IDEs

ide, java, matlab, ubuntu

Solution

As a user I wouldn't want to type the above command everytime I open MATLAB. So I searched a bit on matlab 'startup' command line section, and the 'search path' section. I solved my problem after doing the following simple steps:

- See your userpath by typing userpath in MATLAB console: For linux it is: home/username/Documents/MATLAB/

Create a file 'startup.m' having only one line, which will disable Mevent.CASE! (Below is the text to copy)

!synclient HorizEdgeScroll=0 HorizTwoFingerScroll=0

Place the created startup.m file in your userpath folder as defined in MATLAB.

- Now as soon as you place this file in your userpath, restart MATLAB.

- Verify by seeing ans = 0 in the workspace section.

It worked for me on Ubuntu 15.04 running MATLAB R2015b, I hope it works for you all as well.

Note: This is an improvement to @someDude and @Slothworks answer.

Problem

I'm using MATLAB R2014a on my laptop running Ubuntu 14.04 LTS, and am experiencing a rather annoying issue. Whenever I use the two-finger scrolling gesture on my touchpad in either the editor or the main window, the following output appears in the command window: MEvent. CASE! While the scrolling works, this line is output over and over again as I continue to perform the gesture. Any ideas for how to stop this from happening? NOTE: It also occurs in Processing and Arduino IDE

Original source