source:
ThirdParty/levmar/matlab/expfit.m@
8ab061f
Last change on this file since 8ab061f was 8ce1a9, checked in by , 8 years ago | |
---|---|
|
|
File size: 129 bytes |
Rev | Line | |
---|---|---|
[5443b1] | 1 | function x = expfit(p, data) |
2 | n=data; | |
3 | ||
4 | % data1, data2 are actually unused | |
5 | ||
6 | for i=1:n | |
7 | x(i)=p(1)*exp(-p(2)*i) + p(3); | |
8 | end |
Note:
See TracBrowser
for help on using the repository browser.