Convert [4,5] to D5 for excel write
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I have a loop that continuously generates data that gets written one at a time. Problem is that the cell that gets called is named as a spot in a matrix ie 4,5. In order to excel write i need to say D5.
Any ideas?
Thanks
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 3 Jun. 2013
Convert to base 26, add 1 to each digit, and use the result to index 'A':'Z' to find the characters.
0 Kommentare
Weitere Antworten (2)
Iain
am 3 Jun. 2013
coordinate = ['A'-1+wanted_col num2str(wanted_row)];
It only works for up to "Z".
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!