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

//Error
//lsqlin: The number of columns in A must be the same as the number of columns in C
//at line     213 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)