Change language to:
English - Français - 日本語 - Русский

See the recommended documentation of this function

# casc

cascade realization of filter from coefficients (utility function)

### Syntax

```cels = casc(x)
cels = casc(x, vname)```

### Arguments

x

(4xN)-matrix where each column is a cascade element, the first two rows values being the numerators coefficients, and the last two rows values being the denominator coefficients.

vname

string: the name of the cascade variable ("z" if not specified)

cels

### Description

Creates cascade realization of filter from a matrix of coefficients (utility function).

### Examples

```x = [1 2 3 ; 4 5 6 ; 7 8 9 ; 10 11 12]
c = casc(x, 's')```
```--> x = [1 2 3 ; 4 5 6 ; 7 8 9 ; 10 11 12]
x  =
1.    2.    3.
4.    5.    6.
7.    8.    9.
10.   11.   12.

--> c = casc(x, 's')
c  =
2             2             2
1 + 4s + s    2 + 5s + s    3 + 6s + s
------------  ------------  ------------
2             2             2
7 + 10s + s   8 + 11s + s   9 + 12s + s
```