I want to find the number of elements in my array such that these elements have a yi value with designated bounds. E.g. Find all yi such that 1< yi1, yi2, yi3, … etc < 2. How do I code this?
There are many possible ways. Priyan’s method is essential but many other ways could be made up. Depending on your data quickness of computations may play important role.