help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: matrix operators /


From: Jaroslav Hajek
Subject: Re: matrix operators /
Date: Wed, 25 Aug 2010 21:06:21 +0200

On Wed, Aug 25, 2010 at 7:57 PM, Joseph A Cerniglia <address@hidden> wrote:
> Not sure if this is a bug.
>
> a = [ 1 2 3]
> b = [ 2 4 6]
>
> As expected,
> a/b returns 0.50
> a./b returns  0.50 0.50 0.50.
>
> Now change b(3)  = 7
>
> a/b  returns 0.44928
> What is this result/calculation?
>

this solves a = x*b in a least squares sense.  For vectors, it's
equivalent to a*b' / norm(b)^2.

hth

-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]