added between criteria for mathworks