Mercurial > octave-nkf
diff doc/interpreter/sparseimages.m @ 7262:16e61aecddc1
[project @ 2007-12-05 20:50:47 by jwe]
author | jwe |
---|---|
date | Wed, 05 Dec 2007 20:50:47 +0000 |
parents | e8a3e3e33490 |
children | 3422f39573b1 |
line wrap: on
line diff
--- a/doc/interpreter/sparseimages.m Wed Dec 05 19:00:22 2007 +0000 +++ b/doc/interpreter/sparseimages.m Wed Dec 05 20:50:47 2007 +0000 @@ -262,3 +262,13 @@ end_unwind_protect endif endfunction + +## generate something for the texinfo @image command to process +function image_as_txt(nm) + fid = fopen (sprintf ("%s.txt", nm), "wt"); + fputs (fid, "\n"); + fputs (fid, "+---------------------------------+\n"); + fputs (fid, "| Image unavailable in text mode. |\n"); + fputs (fid, "+---------------------------------+\n"); + fclose (fid); +endfunction