GCD(N)

Version 1.0.0.0 (426 Bytes) by Ambroise
Greatest Common Divisor of the values in array N
79 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 (2024). 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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

updated description