Can anyone help me with creating a function to apply two thresholds on received signals. These thresholds are then compared with the received power. The thresholds are w1 and w2, where w2>w1. I want this function to give me one of three answers. 0, 1, or X. 0 for the signal power below w1, 1 for the signal power to be above w2 and X for signal to be between w2 and w1.
I would be grateful for any help.
Thanks