Skip to content

Commit 2dcb5df

Browse files
committed
Add Navigation page to faciliate use in MATLAB Online
1) Use an if-check in OpenOverview to try to determine if the scripts are opening in MATLAB Online or MATLAB Desktop and supply an appropriate navigation page accordingly. 2) Just in case, update Overview.html as well
1 parent b70e384 commit 2dcb5df

File tree

5 files changed

+291
-320
lines changed

5 files changed

+291
-320
lines changed

HelperFunctions/Navigation.mlx

24.9 KB
Binary file not shown.

HelperFunctions/OpenOverview.m

Lines changed: 10 additions & 4 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)
8+
end
9+
10+
% Close the current script
11+
open("OpenOverview.m")
12+
close(matlab.desktop.editor.getActive)
713
end

0 commit comments

Comments
 (0)