?? vtbsetup.m
字號:
%Simple script to add the vtoolbox directory to the matlab pathvtbupdir = uigetdir(pwd,'Choose the Engineering Vibration Toolbox (vtoolbox) directory.'); cd(vtbdir)addpath(pwd,'-end')aa=savepath;if aa==1 if isunix&&~strcmp(computer,'MACI') astartmod=questdlg(['Path not saved. You will need to add the line ''addpath(''' pwd ''')'' to your startup.m file. Do you want me to attempt to do this?']) ; if strcmp(astartmod,'Yes') ucommand=['!echo addpath\(\''' pwd '\''' ',' '\''' '-' 'end' '\''' '\) >> ~/startup.m']; eval(ucommand); msgbox('The last line of the file startup.m in your home directory should now be set to add vtoolbox to your path each time you run Matlab. In order for the Engineering Vibration Toolbox to work, you must always run Matlab from your home directory. ') end else warndlg('Path not saved. You will have to manually set your startup path to include the vtoolbox directory.') pathtool endend
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -