Cody

Problem 1019. Vector LCM

Created by AMITAVA BISWAS in Community
  • Find Least Common Multiple of a given vector.
  • Need general solution as the test suite will be expanded.
  • Function Template:
function ans = vectorLCM(v)
   % v=[45 15 200 300];
   1800;
end

Solution Stats

77.93% Correct | 22.07% Incorrect
Last solution submitted on Feb 18, 2019

Recent Solvers84

Suggested Problems

More from this Author100

Tags

lcm
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!