How to read several times similarly from EXCEL?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can we read data from Excel for similar sheet names and even file names, I mean in a loop?
for example, we want to read data from sheets A1,A2,...A100 from an Excel file.
Can we do it in a loop? I couldn't!
Things like this do not work:
for i =1:100
sheet= 'A(i)'
E1 = xlsread('filename', sheet,'range')
or
sheet= 'Ai'
sheet= 'A% i'
How can we do so?
Thanks
Steven
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 29 Déc 2013
Modifié(e) : Azzi Abdelmalek
le 29 Déc 2013
for k=1:100
sheet= sprintf('A%d',k)
E{k}= xlsread('filename', sheet)
end
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Spreadsheets dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!