excel sheet with 5rows & 10 columns

조회 수: 1 (최근 30일)
shaz
shaz 2013년 6월 17일
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

답변 (3개)

David Sanchez
David Sanchez 2013년 6월 17일
Did you type help xlswrite in the command window?
The documentation in matlab help is very useful too.

Tom
Tom 2013년 6월 17일
You'll need to set up an Excel server; see this example
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;
  댓글 수: 1
shaz
shaz 2013년 6월 17일
thanks for your answer
can you please tell how to insert a table & put data into the table

댓글을 달려면 로그인하십시오.


Tom
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;

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by