Position of element in a row

3 ビュー (過去 30 日間)
Inna Pelloso
Inna Pelloso 2021 年 2 月 9 日
コメント済み: madhan ravi 2021 年 2 月 9 日
Hi,
I have a 3 x 2 matrix, A:
A = [1 2 3; 3 5 4]
How can I find the position of the number 3 in each row? I want to create B = [3;1]
Any help would be aprpeciated!
Inna

採用された回答

madhan ravi
madhan ravi 2021 年 2 月 9 日
Use second output of find()
help find
  4 件のコメント
Inna Pelloso
Inna Pelloso 2021 年 2 月 9 日
Thank you. What does the '.' do?
madhan ravi
madhan ravi 2021 年 2 月 9 日
doc transpose

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by