Main Content

hasInternalDelay

Determine if model has internal delays

Description

example

B= hasInternalDelay(sys)returns 1 (true) if the modelsyshas internal delays, and 0 (false) otherwise. Ifsysis a model array, thenBis true if least one model insyshas delays.

B= hasInternalDelay(sys,'elem')checks each model in the model arraysysand returns a logical array of the same size assys。逻辑数组表示which models insyshave internal delays.

Examples

collapse all

Build a dynamic system model of the following closed-loop system.

s = tf('s'); G = exp(-2.4*s)/(s-5); C = pid(5,0.1); sys = feedback(G*C,1);

Check the model for internal delays.

B = hasInternalDelay(sys)
B =logical1

The model,sys, has an internal delay because of the transport delay in the plantG。Therefore,hasInternalDelayreturns 1.

Input Arguments

collapse all

Model or array to check for internal delays, specified as a dynamic system model or array of dynamic system models.

Output Arguments

collapse all

Flag indicating presence of internal delays in input model or array, returned as a logical value or logical array.

Version History

Introduced in R2013a