MATLAB Function Reference
  Go to function:
    Search    Help Desk 
lcm    Examples   See Also

Least common multiple

Syntax

Description

L = lcm(A,B) returns the least common multiple of corresponding elements of arrays A and B. Inputs A and B must contain positive integer elements and must be the same size (or either can be scalar).

Examples

See Also

gcd         Greatest common divisor



[ Previous | Help Desk | Next ]