Extract some columns from a matrix

19 visualizaciones (últimos 30 días)
alpedhuez
alpedhuez el 25 de Mzo. de 2018
Respondida: Walter Roberson el 25 de Mzo. de 2018
Suppose I have a matrix A and suppose I want to create a new matrix from 1st, 3rd, and 4th column of A. Is there any compact way to do this?

Respuesta aceptada

Walter Roberson
Walter Roberson el 25 de Mzo. de 2018
B = A(:,[1 3 4])

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by