Submatrix Display simple function

Hi! I just need a simple code displaying a submatrix (I guess there is no need to create it by extracting from matrix, I just need to display certain values - rows from 3 to 5 and columns from 2 to 6).
Thanks!

Respuestas (1)

Birdman
Birdman el 3 de Abr. de 2018
Editada: Birdman el 3 de Abr. de 2018
A(3:5,2:6)
or
disp(A(3:5,2:6))

1 comentario

Birdman
Birdman el 3 de Abr. de 2018
Karolina's answer moved here:
Great! Thank you! :))

Iniciar sesión para comentar.

Categorías

Etiquetas

Preguntada:

el 3 de Abr. de 2018

Comentada:

el 3 de Abr. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by