- Translation: perhaps using indexing, or interpolation. What happens to the elements where the subarray used to be: do they keep their values, or get new values?
- Rotation: by multiples of 90 degrees, or by any arbitrary angle?
Translate/Rotate submatrix
8 ビュー (過去 30 日間)
古いコメントを表示
I have a 512x512x100 matrix A which contains a 100x100x20 submatrix S. I want to translate (and rotate) S. In few words, the final result must be a 512x512x100 matrix containing S, but in a different position (and if possible, rotated). How can I do that?
4 件のコメント
Stephen23
2018 年 4 月 12 日
- Translation: depending on your requirements you could use indexing, or circshift. What happens if the new subarray position lies across/outside the array dimensions?
- Rotation of a array by an arbitrary angle is not clearly defined:
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!