({{, (RefLink[SamplingPeriod, paclet:ref/SamplingPeriod]) 
is an option to (RefLink[StateSpaceModel, paclet:ref/StateSpaceModel]) etc. that specifies the sampling period.}})

OpenersNotesSection(Spacer1)Details

The default setting SamplingPeriod -> (RefLink[Automatic, paclet:ref/Automatic]) specifies continuous-time systems.

(RefLink[SamplingPeriod, paclet:ref/SamplingPeriod])->τ specifies a discrete-time system with sampling period τ.

OpenersPrimaryExamplesSection(Spacer1)Examples  (7)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

A discrete-time transfer function with sampling period 1:

TransferFunctionModel[(1/((z^2)-z+1)),z,SamplingPeriod->1]

A discrete-time state-space model with sampling period τ:

StateSpaceModel[{{{0,2},{-0.5,-1.3}},{{0},{1}},{{1,1}}},SamplingPeriod->τ]

Specify a numerical value:

%/.τ->1.2

A continuous-time system:

StateSpaceModel[{DiagonalMatrix[{-1,-2,-3}],{{1},{-1},{0}},{{1,1,1}}},SamplingPeriod->None]

OpenersExampleSection1(Spacer1)Scope  (4)

When no sampling period is given, a continuous-time system is assumed:

TransferFunctionModel[(s/(s+a)),s]

A discrete-time system:

TransferFunctionModel[(z/(z-1)),z,SamplingPeriod->1]

The sampling period can be symbolic:

ssd=StateSpaceModel[{{{a}},{{b}},{{c}}},SamplingPeriod->τ];

ToContinuousTimeModel[ssd]

Some functions accept objects as well as expressions with (RefLink[SamplingPeriod, paclet:ref/SamplingPeriod]) specified as an option:

{NicholsPlot[TransferFunctionModel[(z/(z+0.5)),z,SamplingPeriod->1]],NicholsPlot[(z/(z+0.5)),SamplingPeriod->1]}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[TransferFunctionModel, paclet:ref/TransferFunctionModel])  ▪  (RefLink[StateSpaceModel, paclet:ref/StateSpaceModel])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Basic Systems Modeling, paclet:guide/Modeling])}})}})