| MATLAB Function Reference | ![]() |
Syntax
L = lcm(A,B)
Description
L = lcm(A,B)
肚皚 A の B 癸莱じ程そ计(Least common multiple)皚 A の B じゲ斗琌タ计ㄢ皚斗 [┪ㄤい琌计(scalar)]
Examples
lcm(8,40)
ans =
40
lcm(pascal(3),magic(3))
ans =
8 1 6
3 10 21
4 9 6
See Also
| lastwarn | legend | ![]() |