Write a function to determine which elements of an array are even numbers (i.e., …, -4, -2, 0, 2, 4, …). Your function should return a logical array of the same size as the input with 1s (TRUE) in the locations corresponding to even numbers.
Mostrar comentarios más antiguos
How could I solve this?
Respuesta aceptada
Más respuestas (1)
Meesha Lini Eesan
el 24 de Mzo. de 2015
0 votos
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!