str2file

writes a cell array of strings into a file

您现在正在关注此提交

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

引用格式

Wolfgang Garn (2026). str2file (https://ww2.mathworks.cn/matlabcentral/fileexchange/11668-str2file), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Cell Arrays 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0