Error using xlsread (line 129). File name must be a string or character vector.
Show older comments
I am getting this error when submitting my answer to Matlab Grader.
Error using xlsread (line 129)
File name must be a string or character vector.
Error in xlsxdatatostructurearray>dependentdata (line 151)
[num,txt,raw] = xlsread(CurrentSheet);
When I do class(CurrentSheet) it returns 'char'.
1 Comment
Cameron Tiegs
on 31 May 2020
Edited: Cameron Tiegs
on 31 May 2020
Accepted Answer
More Answers (1)
Sulaymon Eshkabilov
on 31 May 2020
0 votes
Your codes are workign very well. You'd need to have all of your data files and scripts in one directory. That is it.
Categories
Find more on Use Content in an LMS Course in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!