image thumbnail

str2file

version 1.0.0.0 (1.54 KB) by Wolfgang Garn
writes a cell array of strings into a file

2.1K Downloads

Updated 10 Jul 2006

View License

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 (2021). str2file (https://www.mathworks.com/matlabcentral/fileexchange/11668-str2file), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP2
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!