Find first index with odd entry in vector

2 visualizaciones (últimos 30 días)
Giovanni Rodriguez
Giovanni Rodriguez el 22 de Nov. de 2020
Comentada: Stephen23 el 22 de Nov. de 2020
Hi,
I am trying write code to find the first odd entry in a vector. Such that:
a = [4 2 5 5 2 1]'
enter magical code here
b = 3
Any help is appreciated!
  2 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 22 de Nov. de 2020
Editada: KALYAN ACHARJYA el 22 de Nov. de 2020
Please do read here Foundation MATLAB
Stephen23
Stephen23 el 22 de Nov. de 2020
Original question by Giovanni Rodrigue:
Find first index with odd entry in vector
Hi,
I am trying write code to find the first odd entry in a vector. Such that:
a = [4 2 5 5 2 1]'
enter magical code here
b = 3
Any help is appreciated!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by