printf, stdout, stderr
by Gerald Dalley
05 May 2004
(Updated 10 May 2004)
Convenience functions for text output (printf, stdout, and stderr).
|
Watch this File
|
| 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)
|
|
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
|
|
|
|
Contact us at files@mathworks.com