-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
function ProjectShutdown | ||
% Open the overview file | ||
|
||
% Set up check for version number | ||
proj = currentProject; | ||
myPath = fullfile(proj.RootFolder,"Models"); | ||
if isMATLABReleaseOlderThan("R2023b") | ||
cd(proj.RootFolder) | ||
try | ||
if exist(fullfile("Utilities","OldVersions","MainMenuNew.mlx"),"file") | ||
movefile("MainMenu.mlx", fullfile("Utilities","OldVersions","MainMenuOld.mlx")) | ||
movefile(fullfile("Utilities","OldVersions","MainMenuNew.mlx"),fullfile(proj.RootFolder,"MainMenu.mlx")) | ||
end | ||
catch | ||
disp("Failed to move MainMenu.mlx.") | ||
end | ||
try | ||
if exist(fullfile("Utilities","Oldersions","READMENew.mlx"),"file") | ||
movefile("README.mlx", fullfile("Utilities","OldVersions","READMEOld.mlx")) | ||
movefile(fullfile("Utilities","Oldersions","READMENew.mlx"),fullfile(proj.RootFolder,"README.mlx")) | ||
end | ||
catch | ||
disp("Failed to move README.mlx.") | ||
end | ||
if isMATLABReleaseOlderThan("R2022b") | ||
% Nothing to change | ||
elseif isMATLABReleaseOlderThan("R2023a") | ||
rmpath(fullfile(myPath,"Models22b")) | ||
else | ||
rmpath(fullfile(myPath,"Models23a")) | ||
end | ||
else | ||
rmpath(fullfile(myPath,"Models23a")) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,16 +27,16 @@ | |
if isMATLABReleaseOlderThan("R2022b") | ||
disp(str + " so it may not run this example which was built in R2022b.") | ||
elseif isMATLABReleaseOlderThan("R2023a") | ||
addpath(myPath+filesep+"Models22b") | ||
addpath(fullfile(myPath,"Models22b")) | ||
else | ||
% Fix path to run R2023a files | ||
addpath(myPath+filesep+"Models23a") | ||
addpath(fullfile(myPath,"Models23a")) | ||
end | ||
else | ||
% Fix path to run R2023a files, for now? | ||
disp(str + " and this was designed using R2022b.") | ||
disp("If you find errors, please report them to [email protected]") | ||
addpath(myPath+filesep+"Models23a") | ||
addpath(fullfile(myPath,"Models23a")) | ||
end | ||
StartUpFcn | ||
end |
2 changes: 0 additions & 2 deletions
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/NtYHK68HKCj2dObF23GaX4B3z68d.xml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/NtYHK68HKCj2dObF23GaX4B3z68p.xml
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/SkoAdqI2Fh9TocZ55aP1wbz4t8gd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info File="Utilities/ProjectShutdown.m" GroupUUID="" Icon="" Name="ProjectShutdown" Type="Shutdown" Visible="0"/> |
2 changes: 2 additions & 0 deletions
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/SkoAdqI2Fh9TocZ55aP1wbz4t8gp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info location="e6416641-f09d-4367-a068-040d06e8894b" type="EntryPoint"/> |
2 changes: 2 additions & 0 deletions
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/jrDcN-cJxOIYLwTjafDBwWvhO20d.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info File="Utilities/Startup.m" GroupUUID="" Icon="" Name="Startup" Type="StartUp" Visible="0"/> |
2 changes: 2 additions & 0 deletions
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/jrDcN-cJxOIYLwTjafDBwWvhO20p.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info location="3ecdb3c9-e943-4096-ad17-43aa8c880617" type="EntryPoint"/> |
2 changes: 0 additions & 2 deletions
2
resources/project/iMwdHOXOBiBXhnA_li8gtEJVTjc/L27GnRVudTeNT9LngGtGhVPDrdUp.xml
This file was deleted.
Oops, something went wrong.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
resources/project/iMwdHOXOBiBXhnA_li8gtEJVTjc/ZTr3GAe6p03ZVs2FdKKE0JsiFMQp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info location="ProjectShutdown.m" type="File"/> |
6 changes: 6 additions & 0 deletions
6
resources/project/iMwdHOXOBiBXhnA_li8gtEJVTjc/laEXQ8S8ZfculNP7NEgbVD64dicd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info> | ||
<Category UUID="FileClassCategory"> | ||
<Label UUID="design"/> | ||
</Category> | ||
</Info> |
2 changes: 2 additions & 0 deletions
2
resources/project/iMwdHOXOBiBXhnA_li8gtEJVTjc/laEXQ8S8ZfculNP7NEgbVD64dicp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info location="Startup.m" type="File"/> |