つまり、4! (= 24)手配。
%I just generate some images to show the example
images{1}=ones(5,5,3);images{2}=ones(5,5,3);images{2}(:,:,1)=0;
images{3}=ones(5,5,3);images{3}(:,:,2)=0;images{4}=ones(5,5,3);images{4}(:,:,3)=0;
%code starts here
m=[1 1 2 3];
v=perms(m);
%remove doubles
for ct = size(v,1):-1:2
if any(sum((v(1:ct-1,:)-v(ct,:))==0,2)==4)
v(ct,:)=[];
end
end
%plot in 2x2 figure
for ct = 1:size(v,1)
figure(ct)
for i = 1:4
subplot(2,2,i);imagesc(images{v(ct,i)});
end
end
%to close all images type "close all" in the console
'フィギュア;サブプロット(2,2,1); imshowを(IMG1);サブプロット(2,2,2); imshowを(IMG2); ...' – NKN
シンプルなGoogle検索は改善の余地があります投稿する前に –