Compare filename to data in table

3 Ansichten (letzte 30 Tage)
Debbie Oomen
Debbie Oomen am 1 Mai 2018
Kommentiert: Jan am 5 Mai 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 Kommentare
Debbie Oomen
Debbie Oomen am 4 Mai 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 am 5 Mai 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 .

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by