Readtable for excel workbook file

What command can I use to read an excel workbook(xlsx) file as a table into MATLAB?Also, how do I skip the first 5 rows of the workbook as Headerlines?

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 2월 12일
편집: Cris LaPierre 2021년 2월 12일

0 개 추천

Also look at the Name-Value pair arguments for readtable. Note that, for Spreadsheet files, only these parameter names apply: FileType, ReadVariableNames, ReadRowNames, TreatAsEmpty, DatetimeType, Sheet, Range, UseExcel, and TextType.

댓글 수: 4

Waqas Siddique
Waqas Siddique 2021년 2월 12일
It is not giving information on how to skip the headerlines
Cris LaPierre
Cris LaPierre 2021년 2월 12일
I might have bolded one of the options in my reply to point you in the right direction.
Ali
Ali 2022년 2월 2일
do we have a Excel.Workbooks.activate?
Cris LaPierre
Cris LaPierre 2022년 2월 2일
편집: Cris LaPierre 2022년 2월 2일
Not with readtable. You are asking about ActiveX syntax. For that, see this example and this Answers post.

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

카테고리

질문:

2021년 2월 12일

편집:

2022년 2월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by