Table Of Contents

size

Version:
    Last Modified: March 15, 2017

    Returns the dimensions of an input.

    Syntax

    c = size(a)
    d = size(a, dim)
    [m, n] = size(a)
    [m, n, ...] = size(a)

    Inputs

    a

    Scalar or array of any dimension.

    dim

    Dimension whose size you want to return. dim can be in a range of 1 to the maximum supported array dimension (32).

    Outputs

    c

    Dimensions of a.

    d

    Size of the dim dimension of a. d is a scalar.

    m

    Size of the first dimension of a. m is a scalar.

    n

    Size of the second dimension of a. n is a scalar.

    ...

    Size of further dimensions. ... is a scalar.

    A = [1, 4; 53, 16; 0, -81]
    C = size(A)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics