Find first index with odd entry in vector
3 ビュー (過去 30 日間)
古いコメントを表示
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
2020 年 11 月 22 日
編集済み: KALYAN ACHARJYA
2020 年 11 月 22 日
Please do read here Foundation MATLAB
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 Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!