Wie kann ich die Tastenkombinationen des MATLAB-Editors programmgesteuert angeben?
Ich möchte die Tastatur-Tastenkombinationen als @ einrichteWindows Default Set und ich möchte dies beim Start mit dem @ tstartup.m
, weil ich möchte, dass diese Einstellung auf einer großen Anzahl von Systemen festgelegt wird.
Die entsprechende Einstellung im Dialogfeld "Einstellungen" lautet:MATLAB > Keyboard > Shortcuts > Active Settings: Windows Default Set.
startup.m
nach Suevers AntwortSiehe Zeile 8
% TODO set startup script in $HOME/Documents/bin/matlab/startup.m in Terminal
% all commands here will be run at startup etc startup.m
% TODO set user path as relative by $HOME/Documents/bin/matlab/
%userpath('/home/masi/Documents/bin/matlab/')
% TODO How to set up userpath outside this Matlab script in Terminal?
% http://stackoverflow.com/a/38188945/54964
if ( not( com.mathworks.services.Prefs.getStringPref('CurrentKeyBindingSet') == 'Windows' ) )
com.mathworks.services.Prefs.setStringPref('CurrentKeyBindingSet', 'WindowsDefaultSet.xml')
end
% Event errors else with touchpad scroll
!synclient HorizTwoFingerScroll=0
Matlab: 2016a
System: Linux Ubuntu 16.04