How to remove specific .xlsx files from a directory?

1 visualización (últimos 30 días)
Ivan Mich
Ivan Mich el 7 de Mzo. de 2021
Comentada: Rik el 7 de Mzo. de 2021
I have in a directory multiple .xlsx files. Some files have 1 coulmn and 1 row (1x1) (see attached file1.xlsx) and some files have 6 columns and 1 row (1x6) (see attached file2.xlsx). I am importing these files in order to understand what I mean .
I would like to remove files 1x1 and keep files 1x6 from a directory. Which command should I use?
Could you help me please?
  1 comentario
Rik
Rik el 7 de Mzo. de 2021
What do you think? This isn't your first question, you know the drill.
Try to split up your problems into solvable steps. Do you know how to read xlxs files? Do you know how to determine what size the contents are? Do you know how to delete a file if you know the file name?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre File Operations 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!

Translated by