how i can select a part or section in the matrix
29 次查看(过去 30 天)
显示 更早的评论
i have a matrix as shown in the file i need to select specific section in the matrix and then do on it my equation .
i have 8*8 bit matrix inside 16*16 bit matrix . I want when it reaches the number 8 it jumps or goes to 17 and when it completes to 24 and goes to 33 and at 33 it continues to 40 and at the 40 it leaves and goes to 49 and continues to 56 and so on until the matrix 8 * 8 is completed as shown in the attached file. please if any one . Please if anyone has an idea please help me and I would be grateful to him
0 个评论
采纳的回答
Voss
2021-12-28
Like this?
A = reshape(1:256,16,16).' % construct 16-by-16 matrix as in the file
% Take the 8-by-8 matrix that is the upper-left quarter of A
B = A(1:8,1:8)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Argument Definitions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!