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?

Antworten (1)

Cris LaPierre
Cris LaPierre am 12 Feb. 2021
Bearbeitet: Cris LaPierre am 12 Feb. 2021

0 Stimmen

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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 12 Feb. 2021

Bearbeitet:

am 2 Feb. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by