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
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
3

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!
Go to top of page