Create a function that given n integer values greater than zero, finds the two numbers with the greatest common divisor and returns the gcm
Example
Input x = [1 10 13 50 26]
Output y = 13
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers52
Suggested Problems
-
Sum all integers from 1 to 2^n
17501 Solvers
-
Matrix indexing with two vectors of indices
775 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
450 Solvers
-
321 Solvers
-
Create an index-powered vector
941 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!