csprintf: Write formatted strings to cells.
Version 1.0.0.0 (1.7 KB) by
Douglas Schwarz
Write text into a cell array of strings.
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'
Cite As
Douglas Schwarz (2026). csprintf: Write formatted strings to cells. (https://nl.mathworks.com/matlabcentral/fileexchange/35159-csprintf-write-formatted-strings-to-cells), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2011a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Characters and Strings >
- MATLAB > Language Fundamentals > Data Types > Cell Arrays >
Find more on Characters and Strings in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
