calling specific sheet of excel after importdata
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
Oleg Komarov
le 3 Mar 2012
for s = 1:20
data.(mydata.data{s}) = xlsread('C:...filename',mydata.data{s})
end
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!