Cody

Problem 1018. Array GCD

  • Find Greatest Common Divisor in a given array
  • Function Template:
function ans = arraygcd(a)
   % a=[45 15 200 300];
   5;
end

Solution Stats

62.04% Correct | 37.96% Incorrect
Last solution submitted on Nov 03, 2016

Problem Comments

Tags

gcd
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!

Join the 15-year community celebration.

Play games and win prizes!

Learn more