@Bhargava Hurulagere Sridharamurthy Thanks for the feedback
what my question mean:
check time if it is equal to a value there in vector S and based on that choose the output at that value
for example at time equal 0.075 go to the vector S and see if this condition is true
The condition (S(f) -0.0001 )< time < (S(f) +0.0001 ). the vector S contains 15 values so it need to check for all of it.
if this is true then pressure output = 1
if not pressure output = 0