Article View: comp.soft-sys.matlab
Article #49Re: DISP1: disp1.m - display text and numbers
From: ellert
Date: Mon, 25 Jan 1993 14:39
Date: Mon, 25 Jan 1993 14:39
18 lines
1277 bytes
1277 bytes
In article <GRAY.93Jan25093751@snow.scr.slb.com>, gray@snow.scr.slb.com (Douglas Gray Stephens) writes:
>If you want more control over the format of the numbers, you should
>use the fprintf command, e.g.
>
> fprintf('x measures blah blah, its value is %.4g\n',x)
>
>(you also have more explicit control over the line breaks).
>
A word of warning on the fprintf function -- under VMS 5.5-2, matlab versions
3.5f and 3.5g, I have had the ever so thrilling symbolic stack dump as a
result of placing fprintf calls inside loops. These calls have been to
to the display, rather than to files, and have had the legal number of
arguments.
Ed
ellert@nu1.uh.cwru.edu
Technical Details
Message-ID:
<1k0u3pINN1bm@usenet.INS.CWRU.Edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!spool.mu.edu!agate!usenet.ins.cwru.edu!v32.uh.cwru.edu!ellertReferences:
<1993Jan23.152729.26892@news.columbia.edu> <GRAY.93Jan25093751@snow.scr.slb.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!spool.mu.edu!agate!usenet.ins.cwru.edu!v32.uh.cwru.edu!ellert From: ellert@v32.uh.cwru.edu Newsgroups: comp.soft-sys.matlab Subject: Re: DISP1: disp1.m - display text and numbers Message-ID: <1k0u3pINN1bm@usenet.INS.CWRU.Edu> Date: 25 Jan 93 14:39:53 GMT Article-I.D.: usenet.1k0u3pINN1bm References: <1993Jan23.152729.26892@news.columbia.edu> <GRAY.93Jan25093751@snow.scr.slb.com> Reply-To: ellert@nu1.uh.cwru.edu Distribution: world Organization: Image Analysis Center, Univ. Hospitals of Cleveland Lines: 18 NNTP-Posting-Host: max.uh.cwru.edu