summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqlin/lsqlin_C1.sce
blob: 6da1d49677da2764a25a98a3955ec30ff906df8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Check for elements in C and d
C = [2 0;
	-1 1;
	 0 2]
d = [1
	 0];
A = [10 -2;
	 -2 10];
b = [4
    -4];

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

[xopt,resnorm,residual,exitflag,output,lambda] = lsqlin(C,d,A,b)