Create matrix based on the row numbers

3 ビュー (過去 30 日間)
Alex Rob
Alex Rob 2017 年 5 月 7 日
回答済み: Andrei Bobrov 2017 年 5 月 7 日
Matrix A as follows:
A = [
1
3
4
7
];
Matrix B as follows:
B = [
186691
186242
106221
176882
179562
156792
155692
158642
155785
157852
];
I want to create matrix C as follow where matrix A is the selected row numbers of matrix B.
C = [
186691
106221
176882
155692
];

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2017 年 5 月 7 日

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by