image thumbnail

cprintf: a pedestrian ND array formatting and display utility

version 1.13.0.0 (62.5 KB) by us
cprintf converts an ND array or ND cell array to a 2D character array and - optionally - a table

3.6K Downloads

Updated 11 Jun 2009

View License

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

Cite As

us (2021). cprintf: a pedestrian ND array formatting and display utility (https://www.mathworks.com/matlabcentral/fileexchange/23840-cprintf-a-pedestrian-nd-array-formatting-and-display-utility), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!