Function with xlsread including the excel file name as input variable
3 views (last 30 days)
Show older comments
Hi,
I have the following problem: I have multiple excel files named after countries, e.g. US,UK,FRA,JPN,... .
Now I want to write a function, which takes the name of the excel file as input string, e.g. 'JPN' and then loads the corresponding excel file e.g. data = xlsread('JPN',sheet1).
I tried using eval, but could'nt get it to work.
Best and thanks in advance, Chris
0 Comments
Accepted Answer
More Answers (1)
See Also
Categories
Find more on Spreadsheets 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!