File Exchange

image thumbnail

csprintf: Write formatted strings to cells.

version (1.7 KB) by Douglas Schwarz
Write text into a cell array of strings.


Updated 20 Feb 2012

View License

This is a simple utility function to write formatted strings into a cell array of strings. It works like sprintf, but uses '\f' to separate text into cells, much like '\n' separates text into lines.

>> csprintf('%d\f',1:3)
ans =
'1' '2' '3'

Comments and Ratings (0)

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