cprintf: a pedestrian ND array formatting and display utility
by us
20 Apr 2009
(Updated 11 Jun 2009)
Code covered by BSD License
cprintf converts an ND array or ND cell array to a 2D character array and - optionally - a table
Download Now
|
Watch this File
|
| File Information |
| Description |
CPRINTF
- converts
an ND array of
- real and/or complex full numeric data
- real and/or complex sparse numeric data
- logical data
- char strings
- structures
- other objects
or an ND cell array of any combination of the above
to a 2D character array
- creates tables
- the input may be a cell array formatted as a table with
row/column labels and row/column separators
- any simple (ND) array can be formatted as a table using
any combination of
row/column labels and row/column separators
many options allow to format each aspect of the input and output
to better organize a project using CPRINTF
- options may be entered by an option structure
- options may be read from any ASCII file
- options may be saved in an executable m-file, which
returns an option structure
saving output
- the output may be saved in an ASCII file
- optionally, a file template may be used to insert the
result at a marked position
- tokens in a file template may be replaced by user defined
strings during runtime
CPRINTF may be a useful front end engine to create input for a spreadsheet program
see
> help cprintf
and the accompanying published M-file for more information and examples
use
> cphelp
to open the published M-file in a ML browser window
> cpdoc
to run the examples used in the published M-file |
| MATLAB release |
MATLAB 7.7 (R2008b)
|
| Other requirements |
optimized for r2009a |
| Zip File Content |
|
| Published M Files |
cpdoc
|
| Other Files |
cpdoc.m, cphelp.m, cpini.txt, cprintf.m, cptmpl.txt, license.txt
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 21 Apr 2009 |
added more explanatory text in the published M-file and corrected some annoying typos; no change in functionality; version tag: 21-Apr-2009 20:51:35 |
| 22 Apr 2009 |
formatting changes in the HTML
more help in the processing section of the HTML
the [-db] output now contains more information
change in the conversion engine for speed-up if an array only contains numeric data
version tag 22-Apr-2009 18:18:43 |
| 13 May 2009 |
extensive changes in handling of ND arrays and ND cell arrays of mixed content including optional page index display; version tag 13-May-2009 12:40:03 |
| 15 May 2009 |
full support for ND structures; small change in page indexing engine; version tag 16-May-2009 02:57:29 |
| 18 May 2009 |
speedup for ND logical arrays; version tag 18-May-2009 14:35:01 |
| 21 May 2009 |
improved handling of ND arrays and ND cell arrays of other objects; version tag 21-May-2009 15:20:31 |
| 21 May 2009 |
added options to create/append results to ASCII files including use of template files; version tag 21-May-2009 21:58:49 |
| 22 May 2009 |
the other object conversion now uses a more versatile built-in engine; version tag 22-May-2009 12:27:24 |
| 01 Jun 2009 |
options now may be read from/saved to files and entered by option structures; more help on macros; version tag 01-Jun-2009 20:57:29 |
| 11 Jun 2009 |
user request: added an option to change default TAB/SPACE replacement behavior in CELLs; version tag 11-Jun-2009 08:58:55 |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com