Greatest Common Divisor

Greatest number which could divide both the entered numbers fully (evenly).


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 (2023). Greatest Common Divisor (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: Greatest Common Divisor

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes