LINQ -like queries in Matlab