I have a mat file containing a bunch of structure variables named sequentially: step001,step002,...step070. Each of these variables has a field named 'type'. I want to create a loop to select those variables whose 'type' field is equal to 'rest' and ignore the others.
Any help is highly appreciated. Ehsan