Mercurial > hg > octave-nkf
comparison scripts/deprecated/splchol.m @ 7704:1cdb42b372e8
don't embed newline in warning messages in deprecated functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Apr 2008 12:56:48 -0400 |
parents | 8e5371d47da6 |
children | 9a6012d7cbb7 |
comparison
equal
deleted
inserted
replaced
7703:e44e4cd2129d | 7704:1cdb42b372e8 |
---|---|
28 function varargout = splchol (varargin) | 28 function varargout = splchol (varargin) |
29 persistent warned = false; | 29 persistent warned = false; |
30 if (! warned) | 30 if (! warned) |
31 warned = true; | 31 warned = true; |
32 warning ("Octave:deprecated-function", | 32 warning ("Octave:deprecated-function", |
33 ["splchol is obsolete and will be removed from a future\n", | 33 "splchol is obsolete and will be removed from a future version of Octave; please use chol instead"); |
34 "version of Octave, please use chol instead"]); | |
35 endif | 34 endif |
36 | 35 |
37 varargout = cell (nargout, 1); | 36 varargout = cell (nargout, 1); |
38 [ varargout{:} ] = chol (varargin{:}, "lower"); | 37 [ varargout{:} ] = chol (varargin{:}, "lower"); |
39 | 38 |