Filter Design Toolbox    
limitcycle

Detect limit cycles in a quantized filter

Syntax

Description

limitcycle(hq) runs 20 Monte Carlo trials with quantized filter hq. Each trial uses a new set of initial states (determined randomly) and zero input vector of length 100. Monte Carlo processing stops if a zero-input limit cycle is detected in quantized filter hq. At completion, limitcycle returns one of the following strings:

limitcycle(hq, ntrials, inputlength, stopcriterion, displaytype) lets you set the following arguments:

[LimitcycleType, Zi, StatePeriod, StateSequence, overflowsperstep, trial, section] = limitcycle(hq,...) also returns

Only the parameters of the last limit cycle are returned. If Monte Carlo processing does not detect any limit cycles, the parameters of the last Monte Carlo trial are returned.

Examples

In this example, there is a region of initial conditions in which no limit cycles occur, and a region where they do. If no limit cycles are detected before the Monte Carlo trials are over, the state sequence spirals to zero. When a limit cycle is found, the states do not end at zero. Each time you run this example, it uses a different sequence of random initial conditions, so the plot you get may differ from the one displayed in the following figure.

See Also
freqz, nlm


  length max