Compare filename to data in table

3 visualizzazioni (ultimi 30 giorni)
Debbie Oomen
Debbie Oomen il 1 Mag 2018
Commentato: Jan il 5 Mag 2018
Hi!
The attached table (datatable) has a first column containing specific ID numbers. These ID numbers belong to matching individual files. For example, the first ID number below 'ID' is 'C01'. This row of data corresponds to a file named 'IDC01sec.csv' that is saved in the same folder. For my GUI, I need MATLAB to match the ID number to the file so that it can use the data in that row for further analysis.
Any help is appreciated!
  12 Commenti
Debbie Oomen
Debbie Oomen il 4 Mag 2018
I have matched the diaryrecord row to the filename by using strcmpi. So if I choose file ID118sec.csv, MATLAB will find the row in the diary record belonging to this file. The diaryrecord row includes the wake and bed times for all days data is acquired. So now I need the code to identify the wake and bed times in the ID118sec.csv file and delete all other data that is not between wake and bed time.
Jan
Jan il 5 Mag 2018
Okay. I still cannot imagine, what these sentences mean as Matlab code. But let's care about your problems: What is your question now? Explaining the purpose of the code by telling it as a story is rarley useful. See Tutorial: How to ask a good question .

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by