how i can select a part or section in the matrix
20 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Voss
on 28 Dec 2021
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)
6 Comments
More Answers (0)
See Also
Categories
Find more on Argument Definitions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!