Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Nama : Ni Made Yuniarti

NIM : F1B 013 074


1. Tabel Mechanis 2

Link

connected to

1
2
3
4

20
31
42
53

dyads
1-2-3
3-4-5

Rotation/Translation/
Complex motion
Translation
Complex motion
Rotation
Translation

3.script program
clear all;
clc ;
AB=0.08; BC=0.35; AC=0.15; CD=0.10; DE=0.10;
a=0.10;b=0.30; c=0.08;
%GND
xA=0.4;
yA=0.4;
yC=0.5;
i=0;
M = moviein(12);
incr = 0;
for phi=0:pi/180:pi/(4/3),
xB = AB*cos(phi); %arah putar
yB = AB*sin(phi); %arah putar
eqnC='(xB-xCsol)^2+(yB-yC)^2=BC^2';
solC=solve(eqnC,'xCsol');
xC1=eval(solC(1));
xC2=eval(solC(2));
if xC1 > xB xC = xC1;
else xC = xC2;
end
phi2 = atan((yB-yC)/(xB-xC));
plot([xA,xB],[yA,yB],'g-o',[xB,xC],[yB,yC],'b-o')
xlabel('x (m)');
ylabel('y (m)');
title('Mechanism 4');
text(xA,yA,' B'),text(xB,yB,' D'),text(xC,yC,' E'),...
axis([-0.4 0.85 -0.75 1.5]),...
grid;
incr = incr + 1;
M(incr) = getframe;
end
movie2avi(M,'Mechanism 4.avi');

You might also like