Path: news.mathworks.com!not-for-mail
From: "Feng" <nclxin@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Greatest commmon divisor
Date: Fri, 12 Dec 2008 21:21:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 5
Message-ID: <ghukju$ksu$1@fred.mathworks.com>
Reply-To: "Feng" <nclxin@hotmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1229116862 21406 172.30.248.38 (12 Dec 2008 21:21:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 12 Dec 2008 21:21:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1504162
Xref: news.mathworks.com comp.soft-sys.matlab:506646


Hi, any one know how can get the gcd for an array. The function gcd() in matlabe will give result for a array.
for example I want to get 2 for the array A= [10 2 10 -4 2 0];
Is there any function to do that? or how can I do that? 

Thanks