Library for LyME - control

The following statement makes available functions defined in control:

use control

step

Step response of a continuous-time single-input single-output system.

Syntax

step(num, den)
step(num, den, color)

Description

step(num,den) plots the step response of the continuous-time transfer function num/den.

Example

step(1, [1, 2, 3, 4], 'r');

See also

dstep, impulse

dstep

Step response of a discrete-time single-input single-output system.

Syntax

dstep(num, den)
dstep(num, den, color)

Description

dstep(num,den) plots the step response of the discrete-time transfer function num/den with unit sampling period.

Example

dstep(1, poly([0.7+0.6j, 0.7-0.6j]), 'b');

See also

step, dimpulse

impulse

Impulse response of a continuous-time single-input single-output system.

Syntax

impulse(num, den)
impulse(num, den, color)

Description

impulse(num,den) plots the impulse response of the continuous-time transfer function num/den.

Example

impulse(1, [1, 2, 3, 4]);

See also

dimpulse, step

dimpulse

Impulse response of a discrete-time single-input single-output system.

Syntax

dimpulse(num, den)
dimpulse(num, den, color)

Description

dimpulse(num,den) plots the impulse response of the discrete-time transfer function num/den with unit sampling period.

Example

dimpulse(1, poly([0.7+0.6j, 0.7-0.6j]), 'm');

See also

dstep, impulse

bode

Bode diagram of a continuous-time single-input single-output system (magnitude only).

Syntax

bode(num, den)
bode(num, den, color)

Description

bode(num,den) plots the magnitude of the frequency response of the continuous-time transfer function num/den.

Example

bode(1, poly([0.7+0.6j, 0.7-0.6j]), 'g');

See also

dbode

dbode

Bode diagram of a discrete-time single-input single-output system (magnitude only).

Syntax

dbode(num, den, Ts)
dbode(num, den, Ts, color)

Description

dbode(num,den,Ts) plots the magnitude of the frequency response of the discrete-time transfer function num/den with sampling period Ts.

Example

dbode(1, poly([0.7+0.6j, 0.7-0.6j]), 1);

See also

bode


Copyright 2001-2007, Calerga.
All rights reserved.