source:
ThirdParty/levmar/matlab/expfit.m@
1e06ed
Last change on this file since 1e06ed was 8ce1a9, checked in by , 8 years ago | |
---|---|
|
|
File size: 129 bytes |
Line | |
---|---|
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.