csprintf: Write formatted strings to cells.
Version 1.0.0.0 (1,7 KB) von
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'
Zitieren als
Douglas Schwarz (2024). csprintf: Write formatted strings to cells. (https://www.mathworks.com/matlabcentral/fileexchange/35159-csprintf-write-formatted-strings-to-cells), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R2011a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Language Fundamentals > Data Types > Characters and Strings >
- MATLAB > Language Fundamentals > Data Types > Cell Arrays >
Mehr zu Characters and Strings finden Sie in Help Center und MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |