Greatest Common Divisor

Greatest number which could divide both the entered numbers fully (evenly).
2 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 (2024). 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

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