Main Content

horzcat

Horizontal concatenation of Laurent polynomials

Since R2021b

    Description

    example

    H = horzcat(P1,…,PN) returns the horizontal concatenation of the Laurent polynomials P1,…,PN.

    Examples

    collapse all

    Create two Laurent polynomials:

    • a(z)=z-1

    • b(z)=-2z3+6z2-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(z) and b(z).

    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.

    Extended Capabilities

    C/C++ Code Generation
    Generate C and C++ code using MATLAB® Coder™.

    Version History

    Introduced in R2021b

    See Also

    Functions

    Objects