[Top][All Lists]

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

Re: nesting function error in leasqrdemo.m

From: Penfold
Subject: Re: nesting function error in leasqrdemo.m
Date: Fri, 22 Apr 2011 06:25:45 -0700 (PDT)

Works fine for me.
Octave 3.2.3 on WinXp SP3

Have you been editing the file? From line 75 onwards the file contents are:

function y = leasqrfunc(x,p)
  % sprintf('called leasqrfunc(x,[%e %e]\n', p(1),p(2))
  % y = p(1)+p(2)*x;

function y = leasqrdfdp(x,f,p,dp,func)
  % y = [0*x+1, x];
  y= [exp(-p(2)*x), -p(1)*x.*exp(-p(2)*x)];

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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