Writematrix without autofi column width
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dwight Schrute III
am 6 Jun. 2019
Beantwortet: Walter Roberson
am 6 Jun. 2019
When I use writematrix to paste a matrix into an Excel file, the column widths are then adjusted to autofit the length of the pasted matrix. Is there a way to prevent this from happening, i.e., to retain the original Excel column width prior to pasting?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 6 Jun. 2019
No, not using writematrix() . The widths are controlled by metadata about the cells that writematrix() makes no attempt to control.
In order to control the widths, you would need to be using MS Windows with Excel installed, and you would have to use activex to connect to excel and give it commands to control the cell formatting.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!