how i can select a part or section in the matrix
34 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Voss
le 28 Déc 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Error Detection and Correction dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!