octave-maintainers
[Top][All Lists]
Advanced

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

request test in Matlab


From: Olaf Till
Subject: request test in Matlab
Date: Sat, 27 Oct 2018 12:03:21 +0200
User-agent: NeoMutt/20170113 (1.7.2)

Hi,

could someone test in the following in Matlab? (I'd like to know which
call to lsqcurvefit causes an error message.)


problem.solver = 'lsqcurvefit';
problem.objective = @ (p,x) p(1) + p(2) * exp (-x);
problem.x0 = [1, 1];
problem.xdata = [0 .3 .8 1.1 1.6 2.3];
problem.ydata = [.82 .72 .63 .60 .55 .50];
problem.lb = [0, 0];
problem.options = optimset ('TolFun',1e-100);

p = lsqcurvefit (problem)

problem.fun = @ (p,x) p(1) + p(2) * exp (-x);

p = lsqcurvefit (problem)


Thanks, Olaf

-- 
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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