How to select and write values from data into excel
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Arslan F
el 23 de Feb. de 2017
Comentada: Arslan F
el 26 de Feb. de 2017
I have a single column of 98820 values i want to divide them into groups of 4941 and write them in separate columns in excel
0 comentarios
Respuesta aceptada
Jan
el 23 de Feb. de 2017
x = rand(98820, 1);
y = reshape(x, 4941, 20);
xlswrite(FileName, y);
3 comentarios
Image Analyst
el 25 de Feb. de 2017
Correct (though this more general question wasn't asked). If the vector is not an integer multiple of the number in a group, then Arslan should choose a different group size or else re-think what he wants to do. For the stated numbers, this works.
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!