I'm currently working with a dataset, Data, in Matlab which is a struct object with the fields:
Data.ISIN: char
Data.Date: double X x 1
Data.Price: double X x 1
Data.Rating cell X x 1
Each ISIN (unique identifier) has variable dates, and variable number of dates. (For example, Data(1).Date is 60 x 1, while Data(2).Date is 30 x 1)
I want to identify if a specific date is present for each ISIN, and identify the row where it is present so i can get the corresponding price and rating. Is there an efficient way to do this besides using a double loop for each date and each ISIN?
Thank you in advance for any help or advice.
tablewith your data. You'd have one row for each ISIN/date combination. Then indexing all rows for a given date is trivial. - Cris Luengo