Importing data from different directories
Mostrar comentarios más antiguos
Hi,
I have data saved in several different directories and many often I need to run the same matlab script to make some post-processing. Now my question:
How can I run my script and select the data to import as they belong to different directories?
I have been using uigetfile() but to select files from the current directory only.
Thank you. C. C.
Respuesta aceptada
Más respuestas (3)
Ian
el 28 de Mzo. de 2011
0 votos
You could try this FE submission:
This is a GUI application that allows multiple files or directories to be selected and allows you to manage the list (remove files, reorder, etc.) before returning. It has basic filtering as well as regular expression filtering and navigation of the file system is easy. The output is configurable (cell, struct or char arrays). It is written entirely in M and so is platform independent.
Chiara Modenese
el 28 de Mzo. de 2011
2 comentarios
Ian
el 29 de Mzo. de 2011
Downloading fine here, here is a backup you can try:
https://gist.github.com/raw/892280/8d7368d7d8b35216de5d18917b3c1cf0bb5d37e1/gistfile1.matlab
Chiara Modenese
el 29 de Mzo. de 2011
Chiara Modenese
el 29 de Mzo. de 2011
0 votos
2 comentarios
Ian
el 30 de Mzo. de 2011
You need to do what uipickfiles does, read its source and see what you need to do from it. There isn't a simple way to do it in Matlab I think...
Walter Roberson
el 30 de Mzo. de 2011
Right, uigetfile() only supports selecting from one directory at a time.
Categorías
Más información sobre App Building en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!