calling specific sheet of excel after importdata
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Oleg Komarov
il 3 Mar 2012
for s = 1:20
data.(mydata.data{s}) = xlsread('C:...filename',mydata.data{s})
end
Categorie
Scopri di più su Spreadsheets in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!