diff scripts/polynomial/polyfit.m @ 19704:e5facc6eec13

Silence warning messages in %!test code. * ind2rgb.m: Turn off "Octave:ind2rgb:invalid-idx-img" locally. * condest.m: Turn off "Octave:nearly-singular-matrix" locally. * logm.m: Turn off "Octave:logm:non-principal" locally. * polyfit.m: Turn off "Octave:nearly-singular-matrix" locally. * __printf_assert__.m: Initialize global _assert_printf to empty string to avoid num-to-str warning later. * __prog_output_assert__.m: Initialize global _assert_printf to empty string to avoid num-to-str warning later. . * parser.tst: Turn off "Octave:num-to-str" locally.
author Rik <rik@octave.org>
date Sat, 07 Feb 2015 20:55:39 -0800
parents 446c46af4b42
children 4197fc428c7d
line wrap: on
line diff
--- a/scripts/polynomial/polyfit.m	Sat Feb 07 11:32:47 2015 -0500
+++ b/scripts/polynomial/polyfit.m	Sat Feb 07 20:55:39 2015 -0800
@@ -171,6 +171,7 @@
 ## variable is not normalized properly.
 ## Also check the usage of 2nd & 3rd output arguments.
 %!test
+%! warning ("off", "Octave:nearly-singular-matrix", "local");
 %! x = [ -1196.4, -1195.2, -1194, -1192.8, -1191.6, -1190.4, -1189.2, -1188, ...
 %!       -1186.8, -1185.6, -1184.4, -1183.2, -1182];
 %! y = [ 315571.7086, 315575.9618, 315579.4195, 315582.6206, 315585.4966, ...
@@ -188,6 +189,7 @@
 %! assert (p, p0, 1000*eps);
 
 %!test
+%! warning ("off", "Octave:nearly-singular-matrix", "local");
 %! x = 1000 + (-5:5);
 %! xn = (x - mean (x)) / std (x);
 %! pn = ones (1,5);