How to print the element of a cell into a text file?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Mnr
el 28 de Mzo. de 2014
Comentada: Mnr
el 28 de Mzo. de 2014
Hello all,
I have a 1X8 cell array with all its elements are 1X300 cells and each of those 300 cells are 4X1 doubles. I would like to print the cell array into a .txt file. I would appreciate if somebody can help me please. Thanks.
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 28 de Mzo. de 2014
If A is your cell array
M=cell2mat(cellfun(@(x) cell2mat(x),A','un',0))
dlmwrite('file.txt',M)
Más respuestas (0)
Ver también
Categorías
Más información sobre Multidimensional Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!