nass-simscape/src/project_startup.m

16 lines
451 B
Mathematica
Raw Normal View History

% When the project opens, a startup script is ran.
% The startup script is defined below and is exported to the =project_startup.m= script.
project = simulinkproject;
projectRoot = project.RootFolder;
myCacheFolder = fullfile(projectRoot, '.SimulinkCache');
myCodeFolder = fullfile(projectRoot, '.SimulinkCode');
Simulink.fileGenControl('set',...
'CacheFolder', myCacheFolder,...
'CodeGenFolder', myCodeFolder,...
'createDir', true);