How to read specific sheet from an excel file using readcell?

조회 수: 497 (최근 30일)
Akshay Chandel
Akshay Chandel 2021년 9월 28일
댓글: Simon Chan 2021년 9월 28일
I am unable to find the command which can read specific sheet from an excel file using readcell since is not recommending to use xlsread and xlswrite
  댓글 수: 2
Mathieu NOE
Mathieu NOE 2021년 9월 28일
hello
what have you tried so far ? have you tried with readtable ?
Akshay Chandel
Akshay Chandel 2021년 9월 28일
What I mean is xlsread has the command to read data of a specific sheet in xlsx file. Now matlab is recommending to use readmatrix, readtable or readcell to read xlsx file. Do we have that reading specific sheet feature in any of the three commands MATLAB is recommending.
In simple words I want to read data only from constant sheet but the three commands "readmatrix, readtable and readcell" are only reading first sheet that is signal here.

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

채택된 답변

Simon Chan
Simon Chan 2021년 9월 28일
Try the following for an excel file name 'demo.xlsx', and sheet name 'Signals'.
It is the same for readtable or readmatrix.
readcell('demo.xlsx','UseExcel',true,'Sheet','Signals')
  댓글 수: 3
Akshay Chandel
Akshay Chandel 2021년 9월 28일
Thank you Simon. Its working. How did you know this. I read the whole document but coudnt find it.
Simon Chan
Simon Chan 2021년 9월 28일
It is in the documentation.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by