I have a structure which contains two fields one of them contains vectors,example:
myStruct(1).f1 = val1;
myStruct(1).f2 = [elt1 elt2 elt3];
I want to find the indices of the elements of myStruct where elt1 == valA and elt2 == valB
I have a structure which contains two fields one of them contains vectors,example:
myStruct(1).f1 = val1;
myStruct(1).f2 = [elt1 elt2 elt3];
I want to find the indices of the elements of myStruct where elt1 == valA and elt2 == valB
One way to do this would be: