help-octave
[Top][All Lists]
Advanced

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

Re: Singular matrix


From: Lev
Subject: Re: Singular matrix
Date: Mon, 3 Oct 2016 15:37:01 +0200

On Mon, 3 Oct 2016 09:13:59 -0400
Nir Krakauer <address@hidden> wrote:

> "If the system is not square, or if the coefficient matrix is
> singular, a minimum norm solution is computed."
> https://www.gnu.org/software/octave/doc/v4.0.1/Arithmetic-Ops.html

Yes, thanks. However, I found that Octave did emit a warning at the first
time I run A\B. However, subsequent call of A\B did NOT emit a warning.

I think this is IMHO misleading. Either no warning, or warning each time.

To reproduce this:

>> A=[1,2;1,2]

A =

   1   2
   1   2

>> B=[10;11]

B =

   10
   11

>> A\B

warning: matrix singular to machine precision
ans =

   2.1000
   4.2000

>> A\B
ans =

   2.1000
   4.2000


Lev

-- 
73 de HA5OGL
Op.: Levente

reply via email to

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