Control System Toolbox Function Reference | ![]() ![]() |
Determine whether an LTI model is continuous or discrete
Syntax
boo = isct(sys) boo = isdt(sys)
Description
boo = isct(sys)
returns 1
(true) if the LTI model sys
is continuous and 0
(false) otherwise. sys
is continuous if its sample time is zero, that is, sys.Ts=0
.
boo = isdt(sys)
returns 1
(true) if sys
is discrete and 0
(false) otherwise. Discrete-time LTI models have a nonzero sample time, except for empty models and static gains, which are regarded as either continuous or discrete as long as their sample time is not explicitly set to a nonzero value. Thus both
isct(tf(10))
isdt(tf(10))
are true. However, if you explicitly label a gain as discrete, for example, by typing
g = tf(10,'ts',0.01)
isct(g)
now returns false and only isdt(g)
is true.
See Also
isa
Determine LTI model type
isempty
True for empty LTI models
isproper
True for proper LTI models
![]() | inv | isempty | ![]() |