Odd or even function

I have to create a function oddeven wether the inserted numeric input is odd or even.
input variables: vector consists of integer numbers
output variables:
  • variable odd for odd integer numbers
  • variable even for even integer numbers
thanks for your help!

Asked:

on 12 Oct 2021

Answered:

on 12 Oct 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!