diff --git a/.SimulinkProject/Root.type.EntryPoints/aae1e5cc-ac00-4444-a612-6570201cb54e.type.EntryPoint.xml b/.SimulinkProject/Root.type.EntryPoints/aae1e5cc-ac00-4444-a612-6570201cb54e.type.EntryPoint.xml deleted file mode 100644 index 854d0b4..0000000 --- a/.SimulinkProject/Root.type.EntryPoints/aae1e5cc-ac00-4444-a612-6570201cb54e.type.EntryPoint.xml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/config.m b/config.m deleted file mode 100644 index cadb56c..0000000 --- a/config.m +++ /dev/null @@ -1,4 +0,0 @@ -%% -freqs = logspace(-1, 3, 1000); -save_fig = false; -save('./mat/config.mat', 'freqs', 'save_fig'); diff --git a/project_shutdown.m b/project_shutdown.m new file mode 100644 index 0000000..d7948f6 --- /dev/null +++ b/project_shutdown.m @@ -0,0 +1 @@ +Simulink.fileGenControl('reset'); diff --git a/project_startup.m b/project_startup.m new file mode 100644 index 0000000..276abe4 --- /dev/null +++ b/project_startup.m @@ -0,0 +1,16 @@ +%% +freqs = logspace(-1, 3, 1000); +save_fig = false; +save('./mat/config.mat', 'freqs', 'save_fig'); + +%% +project = simulinkproject; +projectRoot = project.RootFolder; + +myCacheFolder = fullfile(projectRoot, '.SimulinkCache'); +myCodeFolder = fullfile(projectRoot, '.SimulinkCode'); + +Simulink.fileGenControl('set',... + 'CacheFolder', myCacheFolder,... + 'CodeGenFolder', myCodeFolder,... + 'createDir', true);