I have trouble with read excel data sheet

I have trouble when i use 'xlsread' function
When i run, i got a meassage like 'Can not activate Excel worksheet'.
I checked my excel worksheet file and path of my excel file.
How can i solve this problem?

1 Kommentar

Cris LaPierre
Cris LaPierre am 18 Mai 2023
Share your code, the full error message (all the red text), and your file. You can attach it using the paperclip icon.
Also, note this warning at the top of the xlsread documenation page:
xlsread is not recommended. Use readtable, readmatrix, or readcell instead. For more information, see Compatibility Considerations.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Anjaneyulu Bairi
Anjaneyulu Bairi am 9 Aug. 2023

0 Stimmen

The "xlsread" function is not recommended for reading data. Instead, you can use the "readtable," "readmatrix," or "readcell" functions to read data from an Excel file. Please use these functions and see if you are getting any error.
Please refer to the documentations provided below for more information on "xlsread", "readtable," "readmatrix," and "readcell" functions.

Produkte

Version

R2022b

Gefragt:

am 18 Mai 2023

Community Treasure Hunt

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

Start Hunting!

Translated by