summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqnonneg/lsqnonneg_C.sce
blob: 90f5b4381c0f11322c0c70675fadd551f23ccf27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Check for the size of C and d
C = [1 1 1;
	1 1 0;
	0 1 1;
	1 0 0;
	0 0 1]
d = [89;
	67;
	53;
	35]

// Error
//lsqlin: The number of rows in C must be equal the number of elements of d
//at line     106 of function lsqnonneg called by :  
// [xopt,resnorm,residual,exitflag,output,lambda] = lsqnonneg(C,d)

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