MATLAB Answers

Problem regarding reading excel file in a loop

조회 수: 2(최근 30일)
Prakhar Modi
Prakhar Modi 27 Aug 2019
답변: emjey 27 Aug 2019
Hello everyone,
Is it possible to read multiple sheets in a for loop?
For example
I have a Excel file with sheets as sheet 1, sheet 2, sheet 3, sheet 4 and so on.
now as we usual use
but is this possible is someway or other
for i=1:5 %lets say I have 5 sheets name from sheet 1 to sheet 5
xlsread('filename','sheet i','range') %here filename is same and range is same but I want that as i increases the sheet i also gets change. Is it possible?

  댓글 수: 0

로그인 to comment.

채택된 답변

emjey 27 Aug 2019

  댓글 수: 0

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.





Translated by