How to select specific entries of a matrix?

2 visualizaciones (últimos 30 días)
Ammy
Ammy el 31 de Ag. de 2021
Comentada: Ammy el 31 de Ag. de 2021
How to select elements of matrix at the following rows and columns
1,4,7,10,13,16,...
In other words, select elements of matrix at first row and first column, fourth row and fourth column, seventh row and seventh column and so on...

Respuesta aceptada

Matt J
Matt J el 31 de Ag. de 2021
A(1:3:end,1:3:end)

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays 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