Table Of Contents

lcm

Version:
    Last Modified: March 15, 2017

    Computes the pairwise least common multiple of the input elements.

    Syntax

    c = lcm(a, b)

    Inputs

    a

    Scalar or array of any dimension. All elements of a must be positive integers.

    b

    Scalar or array of any dimension. All elements of b must be positive integers.

    Outputs

    c

    Pairwise least common multiple of the elements in a and b. c is an array of the same size as the larger of a and b.

    A = 234;
    B = 98;
    C = lcm(A, B)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics