Main Content

ctranspose

Laurent matrix transpose

Since R2021b

    Description

    example

    B = ctranspose(A) returns the transpose of the Laurent matrix A.

    Examples

    collapse all

    Create two Laurent polynomials:

    • a(z)=2+4z-1+6z-2

    • b(z)=z2+3z+5

    lpA = laurentPolynomial(Coefficients=[2 4 6]);
    lpB = laurentPolynomial(Coefficients=[1 3 5],MaxOrder=2);

    Create the Laurent matrix lmat = [-1a(z)b(z)7].

    lmat = laurentMatrix(Elements={-1 lpA; lpB 7});

    Display the elements of the transpose of lmat.

    lmatTrans = ctranspose(lmat);
    for j=1:2
        for k=1:2
            elt = lmatTrans.Elements{j,k};
            fprintf("===================\nlmatTrans(%d,%d):\n",j,k);
            elt
        end
    end
    ===================
    lmatTrans(1,1):
    
    elt = 
      laurentPolynomial with properties:
    
        Coefficients: -1
            MaxOrder: 0
    
    
    ===================
    lmatTrans(1,2):
    
    elt = 
      laurentPolynomial with properties:
    
        Coefficients: [1 3 5]
            MaxOrder: 2
    
    
    ===================
    lmatTrans(2,1):
    
    elt = 
      laurentPolynomial with properties:
    
        Coefficients: [2 4 6]
            MaxOrder: 0
    
    
    ===================
    lmatTrans(2,2):
    
    elt = 
      laurentPolynomial with properties:
    
        Coefficients: 7
            MaxOrder: 0
    
    

    Input Arguments

    collapse all

    Laurent matrix, specified as a laurentMatrix object.

    Output Arguments

    collapse all

    Transpose of a Laurent matrix, returned as a laurentMatrix object.

    Extended Capabilities

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

    Version History

    Introduced in R2021b