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
Zitieren als
Wolfgang Garn (2024). file2str (https://www.mathworks.com/matlabcentral/fileexchange/11667-file2str), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Quellenangaben
Inspiriert von: Generate help files from m-files, text2speech - tts, str2file
Inspiriert: Generate help files from m-files, str2file, text2speech - tts
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 |