Mercurial > octave-nkf
comparison scripts/deprecated/binomial_pdf.m @ 11744:eb0a86b3deb9 release-3-0-x
don't embed newline in warning messages in deprecated functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Apr 2008 12:57:36 -0400 |
parents | 72830070a17b |
children |
comparison
equal
deleted
inserted
replaced
11743:c7070f6cadc8 | 11744:eb0a86b3deb9 |
---|---|
32 | 32 |
33 persistent warned = false; | 33 persistent warned = false; |
34 if (! warned) | 34 if (! warned) |
35 warned = true; | 35 warned = true; |
36 warning ("Octave:deprecated-function", | 36 warning ("Octave:deprecated-function", |
37 ["binomial_pdf is obsolete and will be removed from a future\n", | 37 "binomial_pdf is obsolete and will be removed from a future version of Octave; please use binopdf instead"); |
38 "version of Octave, please use binopdf instead"]); | |
39 endif | 38 endif |
40 | 39 |
41 pdf = binopdf (varargin{:}); | 40 pdf = binopdf (varargin{:}); |
42 | 41 |
43 endfunction | 42 endfunction |