selection of rows in a matrix

1 visualización (últimos 30 días)
sampath kumar punna
sampath kumar punna el 24 de Oct. de 2019
Respondida: Alex Mcaulley el 24 de Oct. de 2019
how to select only few rows in a matrix
36 13
9 21
23 32
35 5
3 43
in ths five elements i have select only 3 rows which is
36 13
23 32
3 43
which is row 1, row 3, row 5

Respuesta aceptada

Alex Mcaulley
Alex Mcaulley el 24 de Oct. de 2019
A = [36 13
9 21
23 32
35 5
3 43]
B = A([1,3,5],:)

Más respuestas (0)

Categorías

Más información sobre NaNs en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by