i need put color a imagen with matrices?

2 views (last 30 days)
Hello. I have to paint a picture with Matrizes , I do figure with straight . Please , I need help .

Accepted Answer

Walter Roberson
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
edna Navia
edna Navia on 6 May 2015
Edited: Walter Roberson on 6 May 2015
hello, i am edna navia and i do this:
clc, clear
%window above.
x = -11: 0.01: 0
y = sqrt(0.3*-x)+ 21
plot (x,y)
grid on
hold on
%window below
e = -15: 0.01: -1;
f = sqrt(0.89*-e)+ 14.5
plot (e,f)
hold on
%union window 1
i = -15: 0.01: -11
j = 1.2 *i + 36
plot (i,j)
hold on
%union window 2
k = -1: 0.01: 0
l = 5.6 *k + 21
plot(k,l)
hold on
and i need paint this part and more... but i don't now how.
Walter Roberson
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() ?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!