Problem regarding reading excel file in a loop
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Prakhar Modi
 el 27 de Ag. de 2019
  
    
    
    
    
    Respondida: emjey
      
 el 27 de Ag. de 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
xlsread('filename','sheet','range')
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?
end
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
				Más información sobre Data Import from MATLAB en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

