
rosso = ones(512,512,3) *255;
rosso(200:300,200:300,2:3) = 0;

blu = zeros(512,512,3);
blu(200:300,200:300,3) = 255;

verde = zeros(512,512,3);
verde(200:300,200:300,2) = 255;

giallo = ones(512,512,3) *255;
giallo(:,:,3) = 0;

giallo(200:300,200:300,:) = 0;

figure('Name','quadrati');
subplot(2,2,1);
imshow(rosso);
subplot(2,2,2);
imshow(blu);
subplot(2,2,3);
imshow(verde);
subplot(2,2,4);
imshow(giallo);


