I need to record all the intermadiate result into E1,E2,E3,.....but I couldn't manage that help please!
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
clc;
clear;
S=8;m=6;
box1=1:S*S;
box=reshape(box1,S,S);
newbox=zeros(S,S);
Tem=zeros(m,S,S);
[ Q ]=Shuffle22(S);% permute pixels I will have a matrix with S*S elements two column
% do permutation such as [3 4;4 5; 5 6;....and so on
for p=1:m,
k=1;
% by doing these loop , I'll have matrix 8by8, I need to record these matrix for m times,
for C=1:S,
for D=1:S,
newbox(Q(k,1),Q(k,2))=box(D,C);
k=k+1;
end;
end;
box=newbox
% keeping the matrix box in E , but I could not.
E(p,(1:S),(1:S))=box;
end;
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements 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!