Readtable for excel workbook file

조회 수: 2 (최근 30일)
Waqas Siddique
Waqas Siddique 2021년 2월 12일
편집: Cris LaPierre 2022년 2월 2일
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일
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
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.

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

카테고리

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