Borrar filtros
Borrar filtros

takespecific elements from matrix to build new one

2 visualizaciones (últimos 30 días)
Abdulkareem
Abdulkareem el 12 de Mzo. de 2014
Editada: Chris C el 12 de Mzo. de 2014
hey everybody i have 40*10 matrix i want to build new one that contain the first 10 rows (1:10,:) and the third 10 rows (31:40,:) so the new matrix will contain 20*10 . thanks in advance.

Respuesta aceptada

Chris C
Chris C el 12 de Mzo. de 2014
Editada: Chris C el 12 de Mzo. de 2014
If your original matrix is called A, then
B = [A(1:10,:); A(31:end,:)];

Más respuestas (0)

Categorías

Más información sobre Data Types 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