calling specific sheet of excel after importdata
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Oleg Komarov
am 3 Mär. 2012
for s = 1:20
data.(mydata.data{s}) = xlsread('C:...filename',mydata.data{s})
end
Kategorien
Mehr zu Spreadsheets finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!