# horzcat

Horizontal concatenation of Laurent polynomials

## Syntax

``H = horzcat(P1,…,PN)``

## Description

example

````H = horzcat(P1,…,PN)` returns the horizontal 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: `horzcat(P1,P2,P3)` returns the horizontal concatenation of the three Laurent polynomials `P1`, `P2`, and `P3`.

## Output Arguments

collapse all

Horizontal cell array of Laurent polynomials. `H` is a 1-by-N cell array, where N is the number of Laurent polynomials.

## Version History

Introduced in R2021b