I need to record all the intermadiate result into E1,E2,E3,.....but I couldn't manage that help please!
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!