2019-07-15 11:07:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
% When the project opens, a startup script is ran.
|
|
|
|
% The startup script is defined below and is exported to the =project_startup.m= script.
|
|
|
|
|
2018-10-16 13:25:05 +02:00
|
|
|
project = simulinkproject;
|
|
|
|
projectRoot = project.RootFolder;
|
|
|
|
|
|
|
|
myCacheFolder = fullfile(projectRoot, '.SimulinkCache');
|
|
|
|
myCodeFolder = fullfile(projectRoot, '.SimulinkCode');
|
|
|
|
|
|
|
|
Simulink.fileGenControl('set',...
|
|
|
|
'CacheFolder', myCacheFolder,...
|
|
|
|
'CodeGenFolder', myCodeFolder,...
|
|
|
|
'createDir', true);
|