calling specific sheet of excel after importdata
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Oleg Komarov
2012년 3월 3일
for s = 1:20
data.(mydata.data{s}) = xlsread('C:...filename',mydata.data{s})
end
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!