Find first index with odd entry in vector

3 ビュー (過去 30 日間)
Giovanni Rodriguez
Giovanni Rodriguez 2020 年 11 月 22 日
コメント済み: Stephen23 2020 年 11 月 22 日
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 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by