MATLAB Function Reference Previous page   Next Page
lcm

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


Previous page  lastwarn ldivide, rdivide Next page

© 1994-2005 The MathWorks, Inc.