How to use files from different folders to the script.
Mostrar comentarios más antiguos
Hi guys
my files are organised as such:
Engine\Vehicle\Date\data.csv
files for each vehicle are organised into days.
I want to be able to run my script from one location without having to copy it into each folder that I want to use it. This is for data analysis so the file names and subfolder names change regularly each day. the folder name stays the same however.
The script that I use lives in a different directory.
Currently I have been able to add the files to the script path with
addpath(genpath('Engine'))
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 31 de Ag. de 2012
Editada: Image Analyst
el 31 de Ag. de 2012
0 votos
Several examples are in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
If you want to interactively select files based on the date, use uigetfile() and then you use the icon in the dialog box to show details, one of which will be the date. You can also sort them there.
Categorías
Más información sobre File Operations 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!