iprintf - wrapper for fprintf-like print functions with automatic indentation capabilities (Scripts) Publisher's description
from Cedric Wannaz
Wrapper for fprintf-like print functions with automatic indentation capabilities
Wrapper for fprintf-like print functions with automatic indentation capabilities, based on format string processing.
The default mechanism automatically indents the output based on the length of the function call stack. The indentation hence directly reflects the depth of the function from which iprintf is called. A major advantage of such an automatically indented print function is that it shapes the output to screen/file according to the program flow/structure, which is a significant advantage for visualizing and analyzing the flow of operations in complex programs/projects.
The transition from fprintf to iprintf is direct as only the function name has to be updated. An initial call to iprintf for configuration purpose can be performed for setting a user defined global configuration. Additional parameters can be added to regular printf operations for fine tuning or for bypassing the global configuration at specific places. All iprintf internal parameters can be defined by user through special calls to iprintf, which makes this function extremely flexible.
An extensive help is included in iprintf.m, supported by a separate script file with examples illustrating all iprintf features.
System Requirements:MATLAB 7.11 (2010b)
Program Release Status: New Release
Program Install Support: Install and Uninstall