Specified matrix range to Excel file
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dominika Szt
el 29 de Abr. de 2017
Comentada: Image Analyst
el 29 de Abr. de 2017
Hi everyone! I am trying to export matrix A to Excel file. The matrix is quite big and I need only specified rows of it (e.g. from 8 to 12 - it's 4 rows). When I use:
Range = 'A8:Z12'
xlswrite('file',A,Range);
it exports not the 8-12 matrix rows, but saves first 4 rows in 8-12 range in Excel. Does anyone of you know how to solve this problem?
0 comentarios
Respuesta aceptada
Pouya Jamali
el 29 de Abr. de 2017
Hi,
Did you try using a medium variable? I mean before you try to save your matrix A in an Excel file save those elements you want in another Matrix, lets say aux_A then save it into an Excel file.
0 comentarios
Más respuestas (1)
Dominika Szt
el 29 de Abr. de 2017
3 comentarios
Image Analyst
el 29 de Abr. de 2017
Here's another tip, if you're willing to learn how to use ActiveX to gain total and complete control over Excel. See attached demo that only breaks the surface of what you can do with ActiveX. Basically ActiveX lets you do anything from MATLAB that you could do manually or from a macro in Excel itself.
Ver también
Categorías
Más información sobre Spreadsheets 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!