I have a set of X values and corresponding Y values (n = 50). The X values are in the range [0:0.2:10]. The Y value corresponding to each X value has either +ve and -ve values. I would like to group all Y values which are +ve and also find out the corresponding X values.
I am unable to solve this issue. I tried using y(x(i))>0 but I got an error that the x(i) should be an integer.
Can anyone please help? Thank you.