Greatest Common Divisor (direct step backwards)

Without using any arrays, the direct method of finding GCD is implemented by while loop.

You are now following this Submission

Much simpler and showman's way of GCD technique is implemented through while looping by avoiding any kind of arrays, sorting or selecting.

Cite As

Sambit Supriya Dash (2026). Greatest Common Divisor (direct step backwards) (https://se.mathworks.com/matlabcentral/fileexchange/97667-greatest-common-divisor-direct-step-backwards), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
3.0.0