Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Greatest commmon divisor
Date: Tue, 16 Dec 2008 08:09:06 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 12
Message-ID: <gi7nn2$k6k$1@fred.mathworks.com>
References: <ghukju$ksu$1@fred.mathworks.com> <ghul2u$rfp$1@fred.mathworks.com> <ghum4l$d95$1@fred.mathworks.com> <gi7mqt$87b$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1229414946 20692 172.30.248.37 (16 Dec 2008 08:09:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 16 Dec 2008 08:09:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:507245



> 
> min(gcd(A(1:end-1),A(2:end)))
> 

Jos, this does not work

A=[15 30 20]

gcd is 5, not 10

Bruno