calling specific sheet of excel after importdata
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Oleg Komarov
el 3 de Mzo. de 2012
for s = 1:20
data.(mydata.data{s}) = xlsread('C:...filename',mydata.data{s})
end
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!