printf, stdout, stderr

Version 1.0.0.0 (814 octets) par Gerald Dalley
Convenience functions for text output (printf, stdout, and stderr).
4,4K téléchargements
Mise à jour 10 mai 2004

Aucune licence

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.

Citation pour cette source

Gerald Dalley (2026). printf, stdout, stderr (https://fr.mathworks.com/matlabcentral/fileexchange/4871-printf-stdout-stderr), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R12.1
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Testing Frameworks dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0