Discover MakerZone

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

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!

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

78 correct solutions 44 incorrect solutions
Last solution submitted on Jul 16, 2016

Problem Comments