write data to excel for more than 26 (A-Z) columns
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Muhammad Usman
le 6 Sep 2014
Réponse apportée : Image Analyst
le 6 Sep 2014
I am using xlswrite and wants to write data ranging from A column to ABC column,but when i specify the range A:ABC,i got an error,please help me what should i do.
range = 'A':'ABC'
xlswrite([filename],[my_ftn],sheet1,range)
waiting for someone's reply
0 commentaires
Réponse acceptée
Image Analyst
le 6 Sep 2014
Don't specify the lower right cell, just the upper left, and it will put the whole thing in there:
xlswrite(fullFilename, hugeArray, 'My Results', 'A1');
0 commentaires
Plus de réponses (1)
Guillaume
le 6 Sep 2014
Modifié(e) : Guillaume
le 6 Sep 2014
Two things:
Your version of excel may be limited to 256 columns, i.e. you can only save range 'A:IV'.
You need to specify a row range as well, otherwise it's going to fill as many rows as excel can handle:
xlswrite(filename, my_ftn, sprintf('A1:BZ%d', size(my_ftn, 1))); %replace BZ by the proper column or calculate it
Voir également
Catégories
En savoir plus sur Spreadsheets dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!