excel sheet with 5rows & 10 columns
1 回表示 (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (3 件)
David Sanchez
2013 年 6 月 17 日
Did you type help xlswrite in the command window?
The documentation in matlab help is very useful too.
0 件のコメント
Tom
2013 年 6 月 17 日
That shows how to change the cell colours. The font is made bold in a similar way, using the selected range:
ran.font.Bold = 1;
Tom
2013 年 6 月 17 日
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;
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!