Function Reference | ![]() ![]() |
Determine whether an LTI model is continuous or discrete
Syntax
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
are true. However, if you explicitly label a gain as discrete, for example, by typing
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
![]() | iopzmap | isempty | ![]() |