function gcd=mygcd(m,n)
while(m~=n)
if(m>n)
m=m-n;
else
n=n-m;
end
end
gcd=n;
end
调用
56*24/mygcd(56,24)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!