Borrar filtros
Borrar filtros

How to zoom out / shrink the matrix to the desired matrix

10 visualizaciones (últimos 30 días)
Yiqing Zhou
Yiqing Zhou el 10 de Mzo. de 2018
Editada: Stephen23 el 12 de Mzo. de 2018
Hi guys, I have a question. I have an 8 by 8 matrix for instance, and I tried to shrink it into 5 by 5 matrix. Does the Matlab have the way to do that? I try to extract the odd element in rows and columns but it cannot the exact size of the matrix I want. For example Y = I(1:2: end,1:2: end) and in 8 by 8 matrix case, it will only output the 4 by 4 matrix. Thank you

Respuesta aceptada

Stephen23
Stephen23 el 10 de Mzo. de 2018
Editada: Stephen23 el 12 de Mzo. de 2018
  4 comentarios
Walter Roberson
Walter Roberson el 12 de Mzo. de 2018
interp2(M, V, V.')
Yiqing Zhou
Yiqing Zhou el 12 de Mzo. de 2018
It works, thank you, Roberson.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Resizing and Reshaping Matrices 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