# Thread: Checking integer value belongs to interval

1. ## Checking integer value belongs to interval

Hello,

how can I let matlab check if a given integer z belongs to the interval [-1,1]?

2. Originally Posted by marty830
how can I let matlab check if a given integer z belongs to the interval [-1,1]?
I don't know anything about matlab, but I know that there are only three integers in $[-1,1]$: $-1,~0,~1$.
So it can't be very hard.