help-octave
[Top][All Lists]
Advanced

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

Re: trouble with qr function


From: Doug Stewart
Subject: Re: trouble with qr function
Date: Sun, 3 Jan 2016 17:02:45 -0500



On Sun, Jan 3, 2016 at 4:46 PM, Doug Stewart <address@hidden> wrote:


On Sun, Jan 3, 2016 at 12:31 PM, ken1866 <address@hidden> wrote:
I'm trying out the qr function in Octave version 4.0.  According to the user
guide page 474, the following is a valid usage: [C, R]=qr(A,B,'0'), but I
get an error when trying it:

printf("Octave version = %s\n",version);
A = [1, 2; 3, 4]
B = [0.2; 4]
[C, R] = qr (A, B, '0')

error: Invalid call to qr.  Correct usage is:

 -- Loadable Function: [Q, R, P] = qr (A)
 -- Loadable Function: [Q, R, P] = qr (A, '0')
 -- Loadable Function: [C, R] = qr (A, B)
 -- Loadable Function: [C, R] = qr (A, B, '0')

Oddly, the error message says that valid usage is exactly what I tried.
What's going on?



I see the same thing you are seeing, and I don't know why it is not working. 


Ok I did some debuging and I see:

this works
A = [1, 2; 3, 4]
B = [0.2; 4]
[C, R] = qr (A,  0)

I don't see any tests for this form:
[C, R] = qr (A, B,  0)
so maybe that form is not implemented and should not be in the help message.


I am not sure, so maybe someone who knows what they are talking about will help us :-)


--
DASCertificate for 206392


reply via email to

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