Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear all
- close all
- f = ones(256);
- fr = f
- fr(:, 1:128) = 0;
- fg = fr;
- fb = f;
- fb(128:256,:) = 0;
- figure,
- subplot(221); imshow(fr);
- subplot(222); imshow(fg);
- subplot(223); imshow(fb);
- rgb = cat(3, fr, fg, fb);
- subplot(224); imshow(rgb);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement