home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / softsys / matlab / 149 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.2 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!spool.mu.edu!agate!usenet.ins.cwru.edu!v32.uh.cwru.edu!ellert
  2. From: ellert@v32.uh.cwru.edu
  3. Newsgroups: comp.soft-sys.matlab
  4. Subject: Re: DISP1:  disp1.m - display text and numbers
  5. Message-ID: <1k0u3pINN1bm@usenet.INS.CWRU.Edu>
  6. Date: 25 Jan 93 14:39:53 GMT
  7. Article-I.D.: usenet.1k0u3pINN1bm
  8. References: <1993Jan23.152729.26892@news.columbia.edu> <GRAY.93Jan25093751@snow.scr.slb.com>
  9. Reply-To: ellert@nu1.uh.cwru.edu
  10. Distribution: world
  11. Organization: Image Analysis Center, Univ. Hospitals of Cleveland
  12. Lines: 18
  13. NNTP-Posting-Host: max.uh.cwru.edu
  14.  
  15.  
  16. In article <GRAY.93Jan25093751@snow.scr.slb.com>, gray@snow.scr.slb.com (Douglas Gray Stephens) writes:
  17. >If you want more control over the format of the numbers, you should
  18. >use the fprintf command, e.g.
  19. >
  20. >  fprintf('x measures blah blah, its value is %.4g\n',x)
  21. >
  22. >(you also have more explicit control over the line breaks).
  23. >
  24.  
  25. A word of warning on the fprintf function -- under VMS 5.5-2, matlab versions
  26. 3.5f and 3.5g, I have had the ever so thrilling symbolic stack dump as a
  27. result of placing fprintf calls inside loops.  These calls have been to
  28. to the display, rather than to files, and have had the legal number of
  29. arguments.
  30.  
  31. Ed
  32. ellert@nu1.uh.cwru.edu
  33.