I have a matrix 65536x8 with all possible combinations of values - 45 90 135 180 (in 8 columns).
I need to remove all the rows that do not contain all four values (each row cannot be missing any of these values).
This is what I've tried (not working):
>> orient(orient(numel(orient(:,1))) == 45 && 90 && 135 && 180,:)
ans =
Empty matrix: 0-by-8
Is there some efficient way to do this in MATLAB?