Write a script that would produce the following 50 x 50 “image” using the RGB, or true color method (NOT the colormap method)
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:13| Question number:4.13
All Answers
total answers (1)
Ch13Ex4.m
imagemat = zeros(50,50,3);
imagemat(20:40,20:40,1) = 255;
imagemat(10:30,10:30,2) = 255;
imagemat = uint8(imagemat);
image(imagemat)
need an explanation for this answer? contact us directly to get an explanation for this answer