Array GCD - MATLAB Cody - MATLAB Central

Problem 1018. Array GCD

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

Solution Stats

57.14% Correct | 42.86% Incorrect
Last Solution submitted on Sep 05, 2024

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers106

Suggested Problems

More from this Author100

Problem Tags

gcd

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!