how to get row from matrix follow a list of rule

4 vues (au cours des 30 derniers jours)
R G
R G le 9 Août 2017
Réponse apportée : KL le 9 Août 2017
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]

Réponse acceptée

KL
KL le 9 Août 2017

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB 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