How would I go about generating a blank image with a yellow background?
2 views (last 30 days)
Show older comments
A portion of my assignment requires that I perform the following:
Generate a 200x 200 image using Matlab. Make the image with yellow background.
The search function provided me with the answer on how to make a blank image of the proper size by using this command blankimage=zeros(200,200). How would I go about making the background of the generated image yellow or would there be an easier way to generate the image?
Thank you in advance for any help provided.
0 Comments
Accepted Answer
Walter Roberson
on 29 Mar 2013
Edited: Walter Roberson
on 29 Mar 2013
blankimage = ones(200,200,3);
blankimage(:,:,3) = 0;
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!