フィルターのクリア

Help please - How to extract row and column from matrix from certain value

1 回表示 (過去 30 日間)
mohamed azuan wahari
mohamed azuan wahari 2016 年 5 月 16 日
回答済み: Roger Stafford 2016 年 5 月 16 日
can someone help me, coding for extract row and column from matrix from certain value
for example i have a value a= 1048 matrix=[566 377 283; 1006 670 503; 1571 1048 786; 2263 1509 1131]
the output should be row_location = 3 column_location = 2

回答 (1 件)

Roger Stafford
Roger Stafford 2016 年 5 月 16 日
[row,col] = find(M==1048);
where M is your matrix.

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by