View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 8.82 KB File ID: #38676 Version: 1.8
image thumbnail




18 Oct 2012 (Updated )

An improved print command with status and timing functionality

| Watch this File

File Information

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.

Required Products MATLAB
MATLAB release MATLAB 7.5 (R2007b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
19 Oct 2012 Jan Simon

Jan Simon (view profile)

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.

Comment only
26 Oct 2012 1.8

Using persistent rather than global and added comprehensive help text. Thanks to Jan Simon for pointing me towards these issues.

Contact us