summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqlin/lsqlin_input1.sce
blob: 5b97670ba24e5667462e1b5ce3f070be145f14b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Check for the input arguments
C = [2 0;
	-1 1;
	 0 2]
d = [1
	 0
    -1];
A = [10 -2;
	 -2 10];
b = [4
    -4];
//Error
//lsqlin: Unexpected number of input arguments : 2 provided while should be in the set of [4 6 8 9 10]
//at line      99 of function lsqlin called by :  
//[xopt,resnorm,residual,exitflag,output,lambda] = lsqlin(C,d)

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