You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
str2file writes a cell array of strings into a file
Input:
* str ... cell array of strings, i.e. str = {'aa','bbbb','','cc'}
* file ... name of the file, i.e. file = 'test.txt'
* (optional) directory ... destination directory
Output:
* A text file.
Example
Write cell array to textfile.
+ str2file( {'aa','bbbb','','cc'}, 'test.txt' );
See also: file2str
Cite As
Wolfgang Garn (2026). str2file (https://ch.mathworks.com/matlabcentral/fileexchange/11668-str2file), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Generate help files from m-files, text2speech - tts, file2str
Inspired: cell2file, Generate help files from m-files, file2str, text2speech - tts
General Information
- Version 1.0.0.0 (1.54 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
