フィルターのクリア

How to find out coordinates of a value from a matrix?

1 回表示 (過去 30 日間)
Boni_Pl
Boni_Pl 2019 年 8 月 30 日
編集済み: Image Analyst 2019 年 8 月 30 日
Hello. I have a matrix
c=[1 2;
3 4;
5 6;
7 8;
9 10];
% and a vector
v=[0;0;5;0;5]
Now, how to get
5=[5 6;
9 10]
and
0=[1 2;
3 4;
7 8];
Kindly help.

回答 (1 件)

madhan ravi
madhan ravi 2019 年 8 月 30 日
c(v==5,:) % same for 0

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by