Write nested cell array data into separate excel sheets
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ganesh Naik
el 18 de Mzo. de 2022
Comentada: Arif Hoq
el 18 de Mzo. de 2022
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/931339/image.png)
Hi all,
I have a nested array data (5 rows and 7 columns) and would like to save the results of each row onto separate excel sheets. In my case, I have 5 rows of nested cell data where I would like to have 5 excel sheets with sheet names representing the ID of the user.
Any help in this is highly appreciated. I have attached the data.
0 comentarios
Respuesta aceptada
Arif Hoq
el 18 de Mzo. de 2022
Editada: Arif Hoq
el 18 de Mzo. de 2022
try this:
A=load('Data3.mat');
B=A.Tc ;
firstrow=[B{1,:}];
% C=string(firstrow);
writecell(firstrow,'filename1.xlsx')
secrow=[B{2,:}];
writecell(secrow,'filename2.xlsx')
thirdrow=[B{3,:}];
writecell(thirdrow,'filename3.xlsx')
upto row 5....
3 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import from MATLAB en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!