# vertcat

Vertical concatenation of Laurent polynomials

## Syntax

``V = vertcat(P1,…,PN)``

## Description

example

````V = vertcat(P1,…,PN)` returns the vertical concatenation of the Laurent polynomials `P1,…,PN`.```

## Examples

collapse all

Create two Laurent polynomials:

• $a\left(z\right)=z-1$

• $b\left(z\right)=-2{z}^{3}+6{z}^{2}-7z+2$

```a = laurentPolynomial(Coefficients=[1 -1],MaxOrder=1); b = laurentPolynomial(Coefficients=[-2 6 -7 2],MaxOrder=3);```

Obtain the vertical and horizontal concatenations of $a\left(z\right)$ and $b\left(z\right)$.

`v = vertcat(a,b)`
```v=2×1 cell array {1x1 laurentPolynomial} {1x1 laurentPolynomial} ```
`h = horzcat(a,b)`
```h=1×2 cell array {1x1 laurentPolynomial} {1x1 laurentPolynomial} ```

## Input Arguments

collapse all

Input polynomials, specified as `laurentPolynomial` objects.

Example: `H = vertcat(P1,P2,P3)` returns the vertical concatenation of the three Laurent polynomials `P1`, `P2`, and `P3`.

## Output Arguments

collapse all

Vertical cell array of Laurent polynomials. `V` is an N-by-1 cell array, where N is the number of Laurent polynomials.

## Version History

Introduced in R2021b