i need put color a imagen with matrices?
2 views (last 30 days)
Show older comments
edna Navia
on 5 May 2015
Commented: Walter Roberson
on 6 May 2015
Hello. I have to paint a picture with Matrizes , I do figure with straight . Please , I need help .
0 Comments
Accepted Answer
Walter Roberson
on 5 May 2015
Example:
pic = zeros(64, 128, 3, 'uint8'); %create matrix to paint in
pic(1:48,:,1) = 56; %assign color information to the various bit planes
pic(24:end,:,2) = 88;
pic(:,65:end, 3) = 199;
image(pic); %look at the image and see how the bit planes combined
2 Comments
Walter Roberson
on 6 May 2015
What do you mean by "paint this part"? Have you considered exporting the graphics window as a file, using print()? Or using getframe() ?
More Answers (0)
See Also
Categories
Find more on Subplots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!