MATLAB: How to find out if a number is even or not

even numbers

I know in C language, for any number x using x%2 will calculate the remainder when x is divided by 2, which will help decipher whether its even or not.
How can I do this in matlab?

Best Answer

See mod and rem