excel sheet with 5rows & 10 columns
Ältere Kommentare anzeigen
i would like to create a excel sheet with following information 1) 5rows & 10 columns 2) each column with different colors 3) heading for each column to be bold
Antworten (3)
David Sanchez
am 17 Jun. 2013
0 Stimmen
Did you type help xlswrite in the command window?
The documentation in matlab help is very useful too.
Tom
am 17 Jun. 2013
The example shows how to put data into the cells:
%Select the appropriate range
ran = h.Activesheet.get('Range',range);
%write the data to the range
ran.value = data;
You can add borders around the cells; here are a couple of examples:
ran.Borders.Item('xlEdgeBottom').LineStyle = 1;
ran.Borders.Item('xlEdgeLeft').Weight = 3;
Kategorien
Mehr zu Spreadsheets finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!