Mercurial > hg > octave-nkf
comparison scripts/deprecated/spmax.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 | 8dee145c777d |
comparison
equal
deleted
inserted
replaced
7703:e44e4cd2129d | 7704:1cdb42b372e8 |
---|---|
27 function varargout = spmax (varargin) | 27 function varargout = spmax (varargin) |
28 persistent warned = false; | 28 persistent warned = false; |
29 if (! warned) | 29 if (! warned) |
30 warned = true; | 30 warned = true; |
31 warning ("Octave:deprecated-function", | 31 warning ("Octave:deprecated-function", |
32 ["spmax is obsolete and will be removed from a future\n", | 32 "spmax is obsolete and will be removed from a future version of Octave; please use max instead"); |
33 "version of Octave, please use max instead"]); | |
34 endif | 33 endif |
35 | 34 |
36 varargout = cell (nargout, 1); | 35 varargout = cell (nargout, 1); |
37 [ varargout{:} ] = max (varargin{:}); | 36 [ varargout{:} ] = max (varargin{:}); |
38 | 37 |