init
This commit is contained in:
17
FOTF Toolbox/fotfpath.m
Normal file
17
FOTF Toolbox/fotfpath.m
Normal file
@ -0,0 +1,17 @@
|
||||
function fotfpath
|
||||
% fotfpath - set path after FOTF installation, for Simulink path
|
||||
|
||||
% Copyright (c) Dingyu Xue, Northeastern University, China
|
||||
% Last modified 18 May, 2022
|
||||
v=version; key=strfind(v,'.'); vers=eval(v(1:key(2)-1));
|
||||
p=path;
|
||||
if vers>=9.12
|
||||
p=strrep(p,'FOTF Toolbox\simulink2019b\','FOTF Toolbox\Simulink\');
|
||||
p=strrep(p,'FOTF Toolbox\simulink2019b;','FOTF Toolbox\Simulink;');
|
||||
else
|
||||
p=strrep(p,'FOTF Toolbox\Simulink\','FOTF Toolbox\simulink2019b\');
|
||||
p=strrep(p,'FOTF Toolbox\Simulink;','FOTF Toolbox\simulink2019b;');
|
||||
end
|
||||
path(p); savepath
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user