gcd
specfun · scripts/specfun/gcd.m
- :
g = gcd (a, b) ¶
- :
[g, c, d] = gcd (a, b) ¶
Greatest common divisor of two integer-valued arrays (MATLAB R2026a).
Exactly two inputs are required (MATLAB:TooManyInputs otherwise).
Bezout coefficients are available with three outputs.