Filter löschen
Filter löschen

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

10 Ansichten (letzte 30 Tage)
Yiqing Zhou
Yiqing Zhou am 10 Mär. 2018
Bearbeitet: Stephen23 am 12 Mär. 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

Akzeptierte Antwort

Stephen23
Stephen23 am 10 Mär. 2018
Bearbeitet: Stephen23 am 12 Mär. 2018
  4 Kommentare
Yiqing Zhou
Yiqing Zhou am 12 Mär. 2018
It works, thank you, Roberson.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by