-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDiscreteDynamics.m
28 lines (24 loc) · 1.19 KB
/
DiscreteDynamics.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%---------------------------------------------------------------------------------------------------
% Copyright (c) Institute of Control Systems, Hamburg University of Technology. All rights reserved.
% Licensed under the GPLv3. See LICENSE in the project root for license information.
% Author(s): Christian Hespe
%---------------------------------------------------------------------------------------------------
classdef DiscreteDynamics < AbstractDynamics
%DISCRETEDYNAMICS Class that defines common properties of a
%discrete-time dynamic system.
% All implementations of discrete-time dynamics should inherit from
% this class rather than the AbstractDynamics, to get access to the
% common properties.
% To be consistent with the interface, the current timestep of the
% system needs to be updated by the inheriting class.
properties(GetAccess = public, SetAccess = protected)
k % Current timestep of the dynamic system
end
methods
function obj = DiscreteDynamics(x0)
%DISCRETEDYNAMICS Construct an instance of this class
obj@AbstractDynamics(x0);
obj.k = 0;
end
end
end