Community Profile

photo

JAISAI KRISHNAN


Last seen: 2 years ago Active since 2022

Statistics

  • First Answer

View badges

Content Feed

View by

Answered
Odd and even numbers
You can use bitwise 'AND' to check if the number is odd (or) even. vec = 1:1:10; oddCheck = bitand(vec,1);

2 years ago | 0