Create matrix based on the row numbers

3 vues (au cours des 30 derniers jours)
Alex Rob
Alex Rob le 7 Mai 2017
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
];

Réponses (1)

Andrei Bobrov
Andrei Bobrov le 7 Mai 2017

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by