calling specific sheet of excel after importdata
Show older comments
Hi I have a excel file with around 20 sheets. I am importing data using mydata = importdata('myfile.xlsx') ;
Now mydata is a structure. This has two substructures; data and textdata. Using mydata.data I am able to get the sheets which are present in the excel file. I want to run a loop such that I can call the specific sheet from mydata.data . Is there any way to do this?
Thanks in advance
Sreenu
Accepted Answer
More Answers (1)
Oleg Komarov
on 3 Mar 2012
for s = 1:20
data.(mydata.data{s}) = xlsread('C:...filename',mydata.data{s})
end
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!