Skip to content

Commit 2b86ab9

Browse files
committed
Updated module for 2025b maintenance round.
1 parent ea79e64 commit 2b86ab9

File tree

204 files changed

+352
-373
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+352
-373
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
MATLABVersion: [R2024a,R2024b]
22+
MATLABVersion: [R2024b,R2025a]
2323
runs-on: ubuntu-latest
24+
env:
25+
LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libstdc++.so.6
2426
steps:
2527
# Checks-out your repository
2628
- uses: actions/checkout@v4
@@ -38,14 +40,7 @@ jobs:
3840
uses: matlab-actions/setup-matlab@v2
3941
with:
4042
release: ${{ matrix.MATLABVersion }}
41-
products: MATLAB Simulink Control_System_Toolbox Simscape Simscape_Driveline Simscape_Multibody
42-
# List required products above in the format shown (and uncomment them)
43-
# List of product strings:
44-
# Simulink
45-
# Statistics_and_Machine_Learning_Toolbox
46-
# Simulink_Coder
47-
# Econometrics_Toolbox
48-
# Deep_Learning_Toolbox
43+
products: MATLAB Simulink Control_System_Toolbox Simscape Simscape_Driveline Simscape_Multibody
4944

5045

5146
# Run all the tests

Images/TestedWith.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"schemaVersion":1,"label":"Tested with","color":"success","message":"R2024a | R2024b"}
1+
{"schemaVersion":1,"label":"Test Status","color":"success","message":"R2024b | R2025a"}
24.5 KB
Binary file not shown.

MainMenu.mlx

-1.8 KB
Binary file not shown.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ The instructions inside the live scripts will guide you through the exercises an
2424

2525
## Contact Us
2626

27-
Solutions are available upon instructor request. Contact the [MathWorks teaching resources team](mailto:[email protected]) if you would like to request solutions, provide feedback, or if you have a question.
28-
27+
Contact the [MathWorks Educator Content Development Team](mailto:[email protected]) if you would like to provide feedback, or if you have a question.
2928

3029
## Prerequisites
3130

@@ -123,7 +122,7 @@ Feel free to explore our other [modular courseware content](https://www.mathwork
123122

124123
# Contribute
125124

126-
Looking for more? Find an issue? Have a suggestion? Please contact the [MathWorks teaching resources team](mailto:%20onlineteaching@mathworks.com). If you want to contribute directly to this project, you can find information about how to do so in the [CONTRIBUTING.md](https://github.com/MathWorks-Teaching-Resources/Virtual-Controls-Laboratory/blob/release/CONTRIBUTING.md) page on GitHub.
125+
Looking for more? Find an issue? Have a suggestion? Please contact the [MathWorks Educator Content Development Team](mailto:onlineteaching@mathworks.com). If you want to contribute directly to this project, you can find information about how to do so in the [CONTRIBUTING.md](https://github.com/MathWorks-Teaching-Resources/Virtual-Controls-Laboratory/blob/release/CONTRIBUTING.md) page on GitHub.
127126

128127

129128
*©* Copyright 2023 The MathWorks™, Inc

README.mlx

-24 Bytes
Binary file not shown.

SoftwareTests/FunctionTests.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
classdef FunctionTests < matlab.unittest.TestCase
22

3+
% https://www.mathworks.com/help/matlab/matlab_prog/use-parameters-in-class-based-tests.html
4+
35
methods(Test)
46

57
end % methods

SoftwareTests/PostSmokeTest.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function PostSmokeTest(ShowReport)
3232
% Format the results in a table and save them
3333
Results = table(Results');
3434
Version = extractBetween(string(Results.Name),"Version=",")");
35-
Passed = Results.Passed;
35+
Passed = logical(Results.Passed);
3636

3737
% Add link to other report
3838
File = fileread(fullfile("public","index.html"));
@@ -51,7 +51,7 @@ function PostSmokeTest(ShowReport)
5151
Badge.message = join("R"+Version," | ");
5252
elseif any(Passed)
5353
Badge.color = "yellowgreen";
54-
Badge.message = join("R")
54+
Badge.message = join("R"+Version(Passed)," | ");
5555
elseif all(~Passed)
5656
Badge.color = "critical";
5757
Badge.message = join("R"+Version," | ");

SoftwareTests/SolnSmokeTests.m

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function SetUpPath(testCase,Project)
5555
% Check that solutions are on path:
5656
testCase.isSolnOnPath = isfolder("Solutions");
5757
if testCase.isSolnOnPath == 0
58-
addpath(fullfile(testCase.RootFolder,"InstructorResources","Solutions"))
58+
addpath(genpath(fullfile(testCase.RootFolder,"InstructorResources","Solutions")))
5959
end
6060

6161
% Close the StartUp app if still open:
@@ -163,4 +163,14 @@ function SmokeRun(testCase,File)
163163

164164
end % Private Access Methods
165165

166+
methods (TestClassTeardown)
167+
168+
function ResetPath(testCase)
169+
if ~testCase.isSolnOnPath && exist("Solutions","dir")
170+
rmpath(genpath(fullfile(currentProject().RootFolder,"InstructorResources","Solutions")))
171+
end
172+
end
173+
174+
end % TestClassTeardown
175+
166176
end % SolnSmokeTests

0 commit comments

Comments
 (0)