help-octave
[Top][All Lists]
Advanced

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

Re: octave-forge leasqr


From: Paul Kienzle
Subject: Re: octave-forge leasqr
Date: Tue, 23 Mar 2004 18:25:35 -0500


On Mar 23, 2004, at 4:16 PM, Guanglei Cui wrote:

Hi,

I just start to learn octave. I want to do some two variable regression using leasqr provided by octave-forge. I tried to follow leasqrdemo, but always got "undefined" error for the target function. Here's my script. I appreciate for your suggestions.

...
[f1, p1, kvg1, iter1, corp1, covp1, covr1, stdresid1, Z1, r21] = ...
    leasqr (x, diff, pguess, tors2);

You are missing quotes around 'tors2'.

Also, to force this to be a script rather than a function,
you will need a statement at the beginning of the file
before the function definition.  E.g.,

        1;

Paul Kienzle
address@hidden



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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