xlsread(uiimport) error at 238

7 visualizzazioni (ultimi 30 giorni)
Chris
Chris il 10 Mag 2013
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 Commento
Soren Preus
Soren Preus il 12 Set 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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Data Import and Analysis in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by