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$>
References: <giakd7$ri2$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1229550542 12813 (17 Dec 2008 21:49:02 GMT)
NNTP-Posting-Date: Wed, 17 Dec 2008 21:49:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:507622

"je w" <> wrote in message <giakd7$ri2$>...
> 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