Effacer les filtres
Effacer les filtres

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

10 vues (au cours des 30 derniers jours)
Yiqing Zhou
Yiqing Zhou le 10 Mar 2018
Modifié(e) : Stephen23 le 12 Mar 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

Réponse acceptée

Stephen23
Stephen23 le 10 Mar 2018
Modifié(e) : Stephen23 le 12 Mar 2018
  4 commentaires
Walter Roberson
Walter Roberson le 12 Mar 2018
interp2(M, V, V.')
Yiqing Zhou
Yiqing Zhou le 12 Mar 2018
It works, thank you, Roberson.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by