Borrar filtros
Borrar filtros

How to create matrix from another matrix?

1 visualización (últimos 30 días)
jack star
jack star el 14 de Mayo de 2016
Editada: Azzi Abdelmalek el 14 de Mayo de 2016
Hi all. I have m(80x200) matrix. I want to take first 41 values from each column and create n(41x200) matrix. Do I need for loop for this?

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 14 de Mayo de 2016
Editada: Azzi Abdelmalek el 14 de Mayo de 2016
You want the first 41 rows of your matrix
A(1:41,:)

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by