Hello,
I have some data which is in nested structures names an example structure is below.
Signal_00.y_values.values
I want to extract this data using a foor loop and place it all in m x n array when m is the original structure, and n the number of points. Here's where I got to:
sigName = {'Signal_00';'Signal_01';'Signal_02';'Signal_03'...}for k = 1:24 tData(k,:) = sigName(k).y_values.valuesend
The error I recieve in command window when I try to open the data is:
>> sNames(1).y_values.valuesDot indexing is not supported for variables of this type.
What is the correct way to generate a structure path which can be used in the for loop?
Best Answer