cell2file
cell2file   writes a cell array of strings, or number into a file 
==This function has been obtained modifyng the file str2file.m I found in the FEX.==
Last Modified: 2008/01/09 (yyyy/mm/dd).
 
 Syntax: cell2file(fid,cell,....) where ... is in the format PARAMETER, VALUE
 Possible Parameter are: 'EndOfLine'
to choose how to end lines (ex:\r\n),
default: \n)
'Delimiter' to  choose the delimiter beetween two value of the same row,
default: ';'
 
 cell2str can write to a file both sting and numeric format.
 
 You just have to pass the handle to the file 
(so that you can choice your opening attribute) and the cellarray.
 
 Ex:
 A={'prova',[1],'prova';
 [3],'txt',[4]};
 
 fid=fopen('prova.log','a+');
 cell2file(fid,A,'EndOfLine','\r\n');
 fclose(fid);
Citar como
Luca Cerone (2025). cell2file (https://es.mathworks.com/matlabcentral/fileexchange/17954-cell2file), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Data Import and Analysis > Data Import and Export > Low-Level File I/O >
- MATLAB > Language Fundamentals > Data Types > Cell Arrays >
Etiquetas
Agradecimientos
Inspirado por: str2file
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0.0 | Bug fix:
 | 
