Skip to content

Commit d98f69e

Browse files
committed
Add Navigation.mlx for use with MATLAB Online
1) Add if check into OpenOverview to try to determine if the project is being run from MATLAB Online or MATLAB Desktop, so the appropriate Navigation script will run. 2) Move the Overview.html to the root directory
1 parent def797b commit d98f69e

File tree

7 files changed

+19
-5
lines changed

7 files changed

+19
-5
lines changed

HelperFunctions/Navigation.mlx

152 KB
Binary file not shown.

HelperFunctions/OpenOverview.m

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
function OpenOverview
2-
% Open the overview file
2+
% Open the overview file
3+
locDir = pwd;
4+
if contains(locDir,filesep+"MATLAB Drive")
5+
open("NavigationOverview.mlx")
6+
else
37
open("Overview.html")
4-
5-
% Close the current script
6-
close(matlab.desktop.editor.getActive)
7-
end
8+
end
9+
10+
% Close the current script
11+
open("OpenOverview.m")
12+
close(matlab.desktop.editor.getActive)
13+
end
File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Info>
3+
<Category UUID="FileClassCategory">
4+
<Label UUID="design"/>
5+
</Category>
6+
</Info>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Info location="Navigation.mlx" type="File"/>

0 commit comments

Comments
 (0)