Documentation for isfsm (SPASS).

Test of the filter state matrix structure


Description

The function isfsm tests whether a variable is a filter state matrix. Boolean output is 1 if it is indeed a filter state matrix, and is 0 else.

Usage

b = isfsm(fsm)

Arguments

fsm Variable. Hoped to be a Filter state matrix.

Values

b Boolean.

See Also

Example

order = 10;      % order
fn=.5;           % normalized cut-off frequency

[A,B,C,D] = butter(order,fn);
fsm = fsminit(A,B,C,D);

% Test

b = isfsm(fsm)

% Making an error

fsm.D = [0 1];

% New test

b = isfsm(fsm)