Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Linear Combination
Date: Wed, 17 Dec 2008 21:49:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <gibs4e$cgd$1@fred.mathworks.com>
References: <giakd7$ri2$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1229550542 12813 172.30.248.38 (17 Dec 2008 21:49:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 17 Dec 2008 21:49:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:507622

"je w" <jingyerushisg@yahoo.com.sg> wrote in message <giakd7$ri2$1@fred.mathworks.com>...
> Anyone knows how to write a matlab code for linear combination?
> ........

  I will give only this hint: make use of matlab's 'gcd' function with all three output arguments.  (I assume the "multiples" referred to are to be integral multiples and that the elements of array 'a' are also integers.)

Roger Stafford