Objective: During our class time, we had a discussion on Linear Transformation. Out of many interesting
linear transformations, 3 Linear Transformations are widely used in the world of Computer Graphic – ,
Scale, Rotation, and Translation.
Use Matlab to draw the picture given below (https://screenrant.com/dragon-ball-z-characters-even-
weaker-than-krillin/)
You can use demo.m file as a base for your script.
Conditions on your submission
1) Cover Page with name
2) Pseudocode
3) Matlab Script
4) Comment on your Matlab Script on how you implemented Scaling, Rotatiting, and translating
(with all numerical factors as well)
5) Comment on your Matlab Script on creating the Eye brows, mouth, and blushes on the face.
6) Your plot result.
EGN 3420 COMPUTER ASSIGNMENT 1 (Due by 11: 59 pm Apr. 6th, 2018)
Objective: During our class time, we had a discussion on Linear Transformation. Out of many interesting
linear transformations, 3 Linear Transformations are widely used in the world of Computer Graphic – ,
Scale, Rotation, and Translation.
Use Matlab to draw the picture given below (https://screenrant.com/dragon-ball-z-characters-evenweaker-than-krillin/)
You can use demo.m file as a base for your script.
Conditions on your submission
1)
2)
3)
4)
Cover Page with name
Pseudocode
Matlab Script
Comment on your Matlab Script on how you implemented Scaling, Rotatiting, and translating
(with all numerical factors as well)
5) Comment on your Matlab Script on creating the Eye brows, mouth, and blushes on the face.
6) Your plot result.
figure(1)
x(1:2,1)=[1;0];
plot(x(1), 4(2),’*’);
grid on; hold on;
axis ( [-15 15 -15 15]);
Inc=5;
k=1;
for j=1: Inc:360;
x(1:2, k+1)=[cosd(Inc) -sind (Inc); sind (Inc) cosd (Inc)]*x(1:2,k);
plot(x(1, k+1), x(2, k+1), ‘^’);
k=k+1;
%pause();
end
k=1;
for j=1:Inc:360;
y1(1:2, k)=[1.5 0;0 3] *x(1:2,k);
plot(y1(1,k),y1(2,k), ‘^’)
k=k+1;
%pause(0.1);
end
k=1;
for j=1:Inc:360;
y2(1:2, k)=[3 0;0 1.5] *x(1:2,k)+[7;5];
plot(y2(1,k),y2(2,k), “^’)
k=k+1;
%pause(0.1);
end
figure(1)
x(1:2,1)=[1;0];
plot(x(1), 4(2),’*’);
grid on; hold on;
axis ( [-15 15 -15 15]);
Inc=5;
k=1;
for j=1: Inc:360;
x(1:2, k+1)=[cosd(Inc) -sind (Inc); sind (Inc) cosd (Inc)]*x(1:2,k);
plot(x(1, k+1), x(2, k+1), ‘^’);
k=k+1;
%pause();
end
k=1;
for j=1:Inc:360;
y1(1:2, k)=[1.5 0;0 3] *x(1:2,k);
plot(y1(1,k),y1(2,k), ‘^’)
k=k+1;
%pause(0.1);
end
k=1;
for j=1:Inc:360;
y2(1:2, k)=[3 0;0 1.5] *x(1:2,k)+[7;5];
plot(y2(1,k),y2(2,k), “^’)
k=k+1;
%pause(0.1);
end