printf, stdout, stderr

Version 1.0.0.0 (814 Bytes) von Gerald Dalley
Convenience functions for text output (printf, stdout, and stderr).
4,4K Downloads
Aktualisiert 10. Mai 2004

Keine Lizenz

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.

Zitieren als

Gerald Dalley (2026). printf, stdout, stderr (https://de.mathworks.com/matlabcentral/fileexchange/4871-printf-stdout-stderr), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R12.1
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Testing Frameworks finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.0.0.0