gcd
Greatest common divisor of symbolic numbers and polynomials
Description
Examples
Input Arguments
Output Arguments
Tips
Calling
gcdwith numbers that are not symbolic objects invokes the MATLAB®gcdfunction.The MATLAB
gcdfunction does not accept rational or complex arguments. To find the greatest common divisor of rational or complex numbers, convert these numbers to symbolic objects by usingsym, and then usegcd.
Version History
Introduced in R2014b