フィルターのクリア

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

10 ビュー (過去 30 日間)
Yiqing Zhou
Yiqing Zhou 2018 年 3 月 10 日
編集済み: Stephen23 2018 年 3 月 12 日
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

採用された回答

Stephen23
Stephen23 2018 年 3 月 10 日
編集済み: Stephen23 2018 年 3 月 12 日
  4 件のコメント
Walter Roberson
Walter Roberson 2018 年 3 月 12 日
interp2(M, V, V.')
Yiqing Zhou
Yiqing Zhou 2018 年 3 月 12 日
It works, thank you, Roberson.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by