📄 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -