Table Of Contents

blockdiag

Version:
    Last Modified: March 15, 2017

    Generates a matrix c with the following structure: c = [a, 0, ..., 0; 0, b, 0, ...]. You can specify an unlimited number of input matrices.

    Syntax

    c = blockdiag(a, b, ...)
    Legacy name: blkdiag

    Inputs

    a

    First matrix.

    b

    Second matrix.

    ...

    Further matrices.

    Outputs

    c

    Block diagonal matrix.

    A = [1, 2; 3, 4];
    B = [5, 6; 7, 8];
    C = blockdiag(A, B)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics