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 件のコメント

Walter Roberson
Walter Roberson 2021 年 2 月 12 日
readtable() with 'range', 'A6'

サインインしてコメントする。

回答 (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