I have trouble with read excel data sheet
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
Cris LaPierre
2023-5-18
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.
回答(1 个)
Anjaneyulu Bairi
2023-8-9
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.
- Documentation link to “xlsread” function: https://www.mathworks.com/help/matlab/ref/xlsread.html
- Documentation link to “readtable” function: https://www.mathworks.com/help/matlab/ref/readtable.html
- Documentation link to “readmatrix” function: https://www.mathworks.com/help/matlab/ref/readmatrix.html
- Documentation link to “readcell” function: https://www.mathworks.com/help/matlab/ref/readcell.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!