summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqnonneg/lsqnonneg_input2.sce
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general_tests/lsqnonneg/lsqnonneg_input2.sce')
-rw-r--r--tests/general_tests/lsqnonneg/lsqnonneg_input2.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/general_tests/lsqnonneg/lsqnonneg_input2.sce b/tests/general_tests/lsqnonneg/lsqnonneg_input2.sce
new file mode 100644
index 0000000..2d2e557
--- /dev/null
+++ b/tests/general_tests/lsqnonneg/lsqnonneg_input2.sce
@@ -0,0 +1,22 @@
+// Check for the input arguments
+C = [
+ 0.0372 0.2869
+ 0.6861 0.7071
+ 0.6233 0.6245
+ 0.6344 0.6170];
+d = [
+ 0.8587
+ 0.1781
+ 0.0747
+ 0.8405];
+
+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)
+