GCD(N)

Version 1.0.0.0 (426 Bytes) by Ambroise
Greatest Common Divisor of the values in array N
84 Downloads
Updated 9 Jul 2015

View License

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://www.mathworks.com/matlabcentral/fileexchange/52049-gcd-n), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0

updated description