Borrar filtros
Borrar filtros

How to make a new matrix that consist of specific column of it's old matrix? (separate matrix)

1 visualización (últimos 30 días)
I have matrix like this:
Data =
2 3 7 1 9
1 4 7 8 2
5 2 3 4 1
then i wanto make a new matrix that consist consist all of item in matrix above, except column 2. then, the output matrix will be like this:
Data =
2 7 1 9
1 7 8 2
5 3 4 1
then column 2 will be in vektor Y, like this:
Y =
3
4
2
what can i do? thanks before :)

Respuesta aceptada

TAB
TAB el 24 de Abr. de 2012
Data(:,2)=[]

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by