have a structure called data with fields data1 data2, data3, data4, in which there are many elements. But I want to break the variable newdata, which has the same fields, but only the first 100 elements of each field in it. Does anyone know a quick way to do this without a loop or brute force method?
data1: [3744x1 double]
data2: [3744x1 double]
data3: [3744x1 double]
data4: [3744x1 double]
source
share