Readtable for excel workbook file

3 vues (au cours des 30 derniers jours)
Waqas Siddique
Waqas Siddique le 12 Fév 2021
Modifié(e) : Cris LaPierre le 2 Fév 2022
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 commentaire
Walter Roberson
Walter Roberson le 12 Fév 2021
readtable() with 'range', 'A6'

Connectez-vous pour commenter.

Réponses (1)

Cris LaPierre
Cris LaPierre le 12 Fév 2021
Modifié(e) : Cris LaPierre le 12 Fév 2021
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 commentaires
Ali
Ali le 2 Fév 2022
do we have a Excel.Workbooks.activate?
Cris LaPierre
Cris LaPierre le 2 Fév 2022
Modifié(e) : Cris LaPierre le 2 Fév 2022
Not with readtable. You are asking about ActiveX syntax. For that, see this example and this Answers post.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by