File Exchange

image thumbnail

printf

version 1.8.0.0 (8.82 KB) by Falko Schindler
An improved print command with status and timing functionality

4 Downloads

Updated 26 Oct 2012

View Version History

View License

printf works as a replacement for Matlab's fprintf. It is particularly designed to easily print log messages of running processes. In addition to formatted output it supports hierarchical grouping of more complex command sequences, automatically printing a statuses as percentage value as well as automatically printing the run time of single processes and groups.

printf nicely works with Matlab's diary functionality.

Further you can adjust parameters to control indentation, maximum depth of hierarchical output and line with.

All features are demonstrated within the contained demo program.

Cite As

Falko Schindler (2021). printf (https://www.mathworks.com/matlabcentral/fileexchange/38676-printf), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Jan

I suggest to use the safer PERSISTENT storage of the control struct PRINTF instead of GLOBAL.

A help text inside the code is very important. Otherwise users, who download your function, will not know how to use the function. Please add a H1-line and a help text. See Matlab's toolbox functions for good examples.

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

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

Start Hunting!