GCD(N)

Greatest Common Divisor of the values in array N

You are now following this Submission

Computes the Greatest Common Divisor of the values in array N using the Euclidean algorithm.
The gcd() function of Matlab is not designed for an array.
Thanks to Shashank, taken from https://www.mathworks.com/matlabcentral/newsreader/view_thread/240937

Cite As

Ambroise (2026). GCD(N) (https://au.mathworks.com/matlabcentral/fileexchange/52049-gcd-n), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

updated description