1. ones(256, 1)
2. [0:1:255]
3. [0:1:255]'
4. ones(256, 1)*[0:1:255]
5. [ones(256, 1)*[0:1:255]]'
6. zeros(256)
7. ones(256)
8. 128*ones(256)
9. zeros(256)
10. imshow(ones(256, 1)*[0:1:255]/255)
11. A(;,;,1) = [ones(256, 1)*[0:1:255]/255]';
A(;,;,2) = zeros(256);
A(;,;,3) = ones(256, 1)*[0:1:255]/255;
imshow(A);
RB Face
12. A(;,;,1) = [ones(256, 1)*[0:1:255]/255]';
A(;,;,2) = ones(256, 1)*[0:1:255]/255;
A(;,;,3) = zeros(256);
imshow(A);
RG Face
13. A(;,;,1) = zeros(256);
A(;,;,2) = [ones(256, 1)*[0:1:255]/255]';
A(;,;,3) = ones(256, 1)*[0:1:255]/255;
imshow(A);
GB Face
14. A(;,;,1) = [ones(256, 1)*[0:1:255]/255]';
A(;,;,2) = ones(256, 1)*[0:1:255]/255;
A(;,;,3) = ones(256);
imshow(A);
MC Face
15. A(;,;,1) = ones(256, 1)*[0:1:255]/255;
A(;,;,2) = ones(256);
A(;,;,3) = [ones(256, 1)*[0:1:255]/255]';
imshow(A);
CY Face
16. A(;,;,1) = ones(256);
A(;,;,2) = [ones(256, 1)*[0:1:255]/255]';
A(;,;,3) = ones(256, 1)*[0:1:255]/255;
imshow(A);
YM Face
More answers to follow.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment