From 12:00 PM - 4:00 PM CST on Thursday, October 18, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Table Of Contents

lcm

Version:
    Last Modified: January 9, 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: Not supported


    Recently Viewed Topics