|
|
| File Information |
| Description |
I find that I often want to either print control characters or print out prettier output than can easily be done with just the built-in disp function. I've written a wrapper around fprintf that outputs to stdout and included stdout and stderr functions. What this allows you to do is replace code like:
fprintf(1, 'My result is: %d', foo);
with cleaner code like
printf('My result is: %d', foo);
The code has been tested on MATLAB 12.1 and 13, but I'd have a hard time believing it doesn't work on much older versions. |
| MATLAB release |
MATLAB 6.1 (R12.1)
|
| Zip File Content |
|
| Other Files |
stderr.m, stdout.m, printf.m
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (9) |
| 24 May 2004 |
Mixel Plick
|
|
|
| 16 Feb 2006 |
Gerald Dalley
|
|
|
| 10 Jan 2007 |
Ambarish Mitra
|
|
|
| 07 Jun 2007 |
Gerald Dalley
|
|
|
| 06 Aug 2007 |
David S
|
|
|
| 25 Jun 2008 |
Singanallur Venkatakrishnan
|
|
|
| 25 Aug 2008 |
A B
|
|
|
| 11 Sep 2009 |
julien diener
|
|
|
| 11 Sep 2009 |
julien diener
|
|
|
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com