source: ThirdParty/levmar/matlab/bt3.m@ 1e06ed

Candidate_v1.6.1
Last change on this file since 1e06ed was 8ce1a9, checked in by Frederik Heber <heber@…>, 8 years ago

Merge commit '5443b10a06f0c125d0ae0500abb09901fda9666b' as 'ThirdParty/levmar'

  • Property mode set to 100644
File size: 160 bytes
Line 
1function x = bt3(p, adata)
2 n=5;
3
4 t1=p(1)-p(2);
5 t2=p(2)+p(3)-2.0;
6 t3=p(4)-1.0;
7 t4=p(5)-1.0;
8
9 for i=1:n
10 x(i)=t1*t1 + t2*t2 + t3*t3 + t4*t4;
11 end
Note: See TracBrowser for help on using the repository browser.