xlsread(uiimport) error at 238

6 次查看(过去 30 天)
Chris
Chris 2013-5-10
Hello all,
Long time reader, first time poster!
My problem is that when I attempt to import an xls file using S = xlsread(uiimport); I get the following message:
Warning: Synchronous evaluation of the uiimport function for spreadsheet files will be deprecated in a future release. Use the asynchronous uiimport syntax instead. > In uiimport at 238
If, however, I type S = xlsread('C:/file.xlsx'); it loads just fine. I've spent hours looking for an appropriate answer online and have come up empty handed. Any help on this would be greatly appreciated.
Thanks, Chris
  1 个评论
Soren Preus
Soren Preus 2013-9-12
It appears that what you really want to do is:
S = xlsread(uigetfile);
However, the warning you see is issued by uiimport when doing a synchronous import of spreadsheet data, i.e. one where access to the command line is blocked and the read data is returned as output. Apparently,
data = uiimport('xlsfile')
will not be allowed in future MATLAB versions, as far as I understand the warning.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by