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

Problem 1018. Array GCD

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

Tags

Problem Group

Solution Statistics

46 correct solutions 25 incorrect solutions
Last solution submitted on Jul 10, 2014