error on 'tables=xlsread(filename);'
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am running 2013b version of matlab and recently upgraded to windows10 from windows 7 with excel2016 (previously excel2011). I am now getting error on this xlsread line, and was wondering if anyone might have suggestions as to why this error is now appearing?
1 commentaire
Steven Lord
le 19 Fév 2019
What is the full text of the error message you receive? Include all the text displayed in red, and if there is also some text displayed in orange show that as well (please indicate which sections are displayed in red and which in orange.)
Réponses (5)
Image Analyst
le 21 Fév 2019
table is a predefined reserved function. You should not, and maybe cannot, assign the results of a call to xlsread() to it. Call it something else, like data.
Secondly, don't call xlsread() all those extra times - it just takes more time. You can get temperature, etc from "data" - the entire array as read in from your first call to xlsread().
0 commentaires
Allan N
le 22 Fév 2019
1 commentaire
Image Analyst
le 22 Fév 2019
Well this time it's saying "unspecified error". That could be anything.
Please attach the m-file and the xlsx workbook file.
Allan N
le 22 Fév 2019
2 commentaires
Image Analyst
le 23 Fév 2019
Well I got down to line 94 when it said this:
'smooth' requires Curve Fitting Toolbox.
Error in TemplateHan (line 94)
intensity(:,n2)=smooth(intensity(:,n2),.10,'lowess');
so I got past the problem line for you. I think it must be some kind of path problem, like the file is not where you're specifying it to be.
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!