Сочетания клавиш MATLAB - PullRequest
       1

Сочетания клавиш MATLAB

4 голосов
/ 08 марта 2011

Я подумал, что было бы интересно, если бы люди делились ярлыками (или mfiles), которые они обычно используют в Matlab для повышения своей производительности.

Вот некоторые из моих:

% Shortcut 1
clear all
close all
clc
try
    dbquit('all')
end

% Shortcut 2 - Show complexity of current m-file
mlint(editorservices.getActive().Filename,'-cyc','-id')

% Shortcut 3 - Start debugging
dbstop if error
dbstop if caught error
dbstop if warning

% Shortcut 4 - Stop debugging
dbclear if error
dbclear if caught error
dbclear if warning

Я также использую тест и создаю ярлыки, но они специфичны для моего кода.

Ответы [ 2 ]

3 голосов
/ 23 ноября 2011

Вот некоторые из моих:

% Tidy up
close all hidden force % Those figures WILL go away
clear variables % Better than clear all, which removes more than just variables
home % Better than clc - you can still scroll up to see history
pack

% Open Explorer in the current directory
winopen(pwd)

% Open a DOS prompt in the current directory
!start

% Open a new file in the editor, with copyright line (needs a recent version)
newFunctionName = 'newfunction';
text = sprintf('function %s\n\n%% Copyright %s Company Name.\n\n',...
    newFunctionName, datestr(now,'YYYY'));
newDoc = matlab.desktop.editor.newDocument(text);
1 голос
/ 09 марта 2011

Ярлык для главного репозитория git:

InitDirectory = cd;
cd(GitFolder);
dos('"C:\Program Files (x86)\Git\bin\wish.exe" "C:/Program Files (x86)/Git/libexec/git-core/git-gui" &');
cd(InitDirectory);
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...