Basic commands - Greatest common divisor - MATLAB Cody - MATLAB Central

Problem 43171. Basic commands - Greatest common divisor

Difficulty:Rate

Please write a function, which, will put as output greatest common divisor.

Example:

   A = [-5 17; 
         10 0];
    B = [-15 3; 
         100 0];
    Y = [ 5     1
         10     0];

Solution Stats

84.68% Correct | 15.32% Incorrect
Last Solution submitted on May 06, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers188

Suggested Problems

More from this Author12

Problem Tags

Community Treasure Hunt

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

Start Hunting!