summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqnonneg/lsqnonneg_input2.sce
blob: 9da3f66cf144edb1547751e8591fd0d2064fc7c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Check for the input arguments
C = [1 1 1;
	1 1 0;
	0 1 1;
	1 0 0;
	0 0 1]
d = [89;
	67;
	53;
	35;
	20]

param = list();
x0 = [0 0];

//Error
//lsqnonneg: Unexpected number of input arguments : 4 provided while should be in the set of [2 3]
//at line      55 of function lsqnonneg called by :  
//[xopt,resnorm,residual,exitflag,output,lambda] = lsqnonneg(C,d,param,x0)

[xopt,resnorm,residual,exitflag,output,lambda] = lsqnonneg(C,d,param,x0)