I need to find indices in cell array of structs. For example, given:
arr{1}.id = 015
arr{2}.id = 015
arr{3}.id = 015
arr{4}.id = 015
arr{5}.id = 037
arr{6}.id = 037
arr{7}.id = 037
arr{8}.id = 037
arr{9}.id = 037
arr{10}.id = 037
arr{11}.id = 040
arr{12}.id = 040
...
I need to find indices which correspond to id=037 only (indx = [5 6 7 8 9])
Is there a simple matlabish solution, without using loops and searching for each individual element?
[arr{:}]succeed?