Lets say I have a structured array with multiple fields in it. Each of those can have more fields or a timetable. I attached an example mat file for you to see, but here is the general idea:
Struct_arr: -Field1: -Subfield1: -Table1
-Field2: -Subfield1: -Table1
Lets say I would like to perform the follwoing operation on each of the tables, where I get the average of a certain table variable grouped by the month in this case (specified in the tstamp of the timetable):
groups = findgroups(extractAfter(string(eg_struct.Field1.SubField1.E1.a),3));
grouped_avg = splitapply(@mean,eg_struct.Field1.SubField1.E1.c,groups);
How can I repeat this operation for each table in the structures in an iterative manner?
Any help is appreciated,