Mercurial > hg > octave-lyh
diff scripts/deprecated/saveimage.m @ 12210:cd6f7f4f53a3
Deprecate saveimage.m.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 29 Jan 2011 19:08:45 -0800 |
parents | scripts/image/saveimage.m@5ec6aa05638d |
children | abb33ad310e6 |
line wrap: on
line diff
copy from scripts/image/saveimage.m copy to scripts/deprecated/saveimage.m --- a/scripts/image/saveimage.m +++ b/scripts/deprecated/saveimage.m @@ -76,6 +76,13 @@ function saveimage (fname, img, fmt, map) + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + "saveimage is obsolete and will be removed from a future version of Octave; please use imwrite instead"); + endif + if (nargin < 2 || nargin > 4) print_usage (); endif