file2str Reads a text file into a cell array of strings
Input:
* file ... name of the file, i.e. file = 'test.txt'
Output:
* str ... cell array of strings
* fullPath ... path + filename + extension
* file ... filename
* directory ... path to file
Example
Write cell array to textfile.
+ str2file( {'aa','bbbb','','cc'}, 'test.txt' );
Read the text file with
+ t = file2str( 'test.txt' )
See also: str2file
引用格式
Wolfgang Garn (2026). file2str (https://ww2.mathworks.cn/matlabcentral/fileexchange/11667-file2str), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R14SP2
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Text Files 的更多信息
标签
致谢
参考作品: Generate help files from m-files, text2speech - tts, str2file
启发作品: Generate help files from m-files, str2file, text2speech - tts
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0.0 |
