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!

2 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 11 月 22 日
編集済み: KALYAN ACHARJYA 2020 年 11 月 22 日
Please do read here Foundation MATLAB
Stephen23
Stephen23 2020 年 11 月 22 日
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!

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

質問済み:

2020 年 11 月 22 日

コメント済み:

2020 年 11 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by