Importing multiple .odt files with specific row and column ranges into Matlab.

8 visualizaciones (últimos 30 días)
I need to import multiple (500) .odt files into Matlab. Until now, I only had to import a single file. I did this using 'importdata', so I clicked on importdata, selected the file, wrote the correct name, selected the range of columns and rows (D13:F262) and then I imported the selection as a numerical matrix. This was for a single file, now I have to import 500 of them (in the exact same way), each with their own name, but the selection for rows and colums is the same for each file (always D13:F262). Obviously I cannot do this manually for all of them. Is there an efficient way to do this using importdata? It seems I can only select a single file with importdata, when browsing through folders. I tried using a for loop, but unfortunately I am still stuck. Help is very much appreciated!

Respuestas (1)

Star Strider
Star Strider el 14 de Mzo. de 2020
If you have R2019a or later, see if the readmatrix function will read it.

Categorías

Más información sobre Standard File Formats en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by