Random gray color. How to do?

I have a 30 random boxes at the images, but I need to do a boxes in random gray color. How to do it?
patch(idx(i)+R(:,1),idy(i)+R(:,2),'k')
What I should write instead of 'k'?

 Accepted Answer

Image Analyst
Image Analyst on 29 Nov 2018
Or you can do the easier method like I suggested to you here in this link where you just burn the color into the image.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!