Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
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
Citar como
Wolfgang Garn (2026). file2str (https://es.mathworks.com/matlabcentral/fileexchange/11667-file2str), MATLAB Central File Exchange. Recuperado .
Agradecimientos
Inspirado por: Generate help files from m-files, text2speech - tts, str2file
Inspiración para: Generate help files from m-files, str2file, text2speech - tts
Información general
- Versión 1.0.0.0 (2,13 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.0.0.0 |
