I have a list L and a matrix X in which I need to perform some operations. One of the operations is to filter the list and matrix between two certain values. In Matlab this look