xlsread(uiimport) error at 238
7 views (last 30 days)
Show older comments
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 Comment
Soren Preus
on 12 Sep 2013
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.
Answers (0)
See Also
Categories
Find more on Data Import and Export in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!