image thumbnail

Greatest Common Divisor

version 1.0.0 (1.4 KB) by Sambit Supriya Dash
Greatest number which could divide both the entered numbers fully (evenly).

0 Downloads

Updated 15 Aug 2021

View License

Enter any two numbers, the code will find the every factor of the two numbers and will match them for the commonness and will find the maximum of the array to be called as the greatest common divisor of the two numbers.

Cite As

Sambit Supriya Dash (2021). Greatest Common Divisor (https://www.mathworks.com/matlabcentral/fileexchange/97647-greatest-common-divisor), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Greatest Common Divisor

Community Treasure Hunt

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

Start Hunting!