how to get row from matrix follow a list of rule

1 回表示 (過去 30 日間)
R G
R G 2017 年 8 月 9 日
回答済み: KL 2017 年 8 月 9 日
I have a list of number, and i want to extract particular row from a list of row:
example:
% A = [1 2;
3 4;
5 6]
B = [1;
3]
so C is the extracted matrix from A by row number in B
% C = [1 2;
5 6]

採用された回答

KL
KL 2017 年 8 月 9 日

その他の回答 (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