how to check whether a sheet exists or not, while using readtable function

rawData = readtable('filepath.xls','Sheet','Data Export')
in the above command, if sheet is not available then its throwing an error.
Error using readtable (line 216)
Sheet name 'Data Export' does not exist or is not supported. To check if the sheet is supported, specify the sheet by its worksheet index.
So i would like to skip this error and proceed further without using 'xlsfinfo'. if possible help me out please.

Categorías

Más información sobre Data Import from MATLAB en Centro de ayuda y File Exchange.

Productos

Versión

R2018b

Preguntada:

el 3 de Mzo. de 2020

Respondida:

el 3 de Mzo. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by