summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqnonlin/lsqnonlin_logical1.sce
blob: aef546fdd6e5c018b0e6fc5324d8eddba3cdda94 (plain)
1
2
3
4
5
6
7
function retF = testmyfun(x)
	km = [1:10]';
	retF = 2 + 2*km-exp(km*x(1))-exp(km*x(2));
endfunction

x0 = [0.3 0.4]'
[x,resnorm] = lsqnonlin(testmyfun,x0)