diff options
Diffstat (limited to 'tests/general_tests/lsqnonneg/lsqnonneg_C.sce')
-rw-r--r-- | tests/general_tests/lsqnonneg/lsqnonneg_C.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/general_tests/lsqnonneg/lsqnonneg_C.sce b/tests/general_tests/lsqnonneg/lsqnonneg_C.sce new file mode 100644 index 0000000..f792559 --- /dev/null +++ b/tests/general_tests/lsqnonneg/lsqnonneg_C.sce @@ -0,0 +1,20 @@ +// Check for the size of C and d +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 + 0.2356]; + +// 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) + |