フィルターのクリア

how to find matrix in a matrix?

2 ビュー (過去 30 日間)
eri
eri 2012 年 10 月 17 日
i have matrix a and b. matrix b is created from matrix a components(rows in this case). now i want to find out from which row of matrix a did matrix b created?
for example:
a=[4 5 7;5 8 9;6 3 1;9 8 5;7 6 5]
b=[4 5 7;6 3 1;9 8 5]
answer:
1;3;4

採用された回答

Matt J
Matt J 2012 年 10 月 17 日
Use the command ismember(...,'rows')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by