printf, stdout, stderr

Convenience functions for text output (printf, stdout, and stderr).
4,4K descargas
Actualizado 10 may 2004

Sin licencia

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.

Citar como

Gerald Dalley (2024). printf, stdout, stderr (https://www.mathworks.com/matlabcentral/fileexchange/4871-printf-stdout-stderr), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R12.1
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Testing Frameworks en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0