Skip to content

Commit e295bbf

Browse files
authored
Add files via upload
1 parent 552a3cb commit e295bbf

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

myBaselineTest.m

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
classdef myBaselineTest < sltest.TestCase
2+
methods (Test)
3+
function testOne(testCase)
4+
testCase.loadSystem('sltest_ratelim');
5+
6+
in = testCase.createSimulationInput('sltest_ratelim',...
7+
'WithHarness','sltest_ratelim_Harness1');
8+
in = in.setVariable('t_gain',[0;2],...
9+
'Workspace','sltest_ratelim');
10+
in = in.setVariable('u_gain',[-0.02;-4.02],...
11+
'Workspace','sltest_ratelim');
12+
13+
simOut = testCase.simulate(in);
14+
testCase.verifySignalsMatch(simOut,'baseline1.mat');
15+
end
16+
end
17+
end

sltest_ratelim.slx

37.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)