You are on page 1of 1

clear all;

close all;

clc;

pas=pi/10

L1=1

L2=2

L3=3

i=1;

for teta1=0:pas:pi

for teta2=0:pas:2*pi

for teta3=0:pas:2*pi

Px(i)=L1*cos(teta1)+L2*cos(teta1+teta2)+L3*cos(teta1+teta2+teta3)

Py(i)=L1*sin(teta1)+L2*sin(teta1+teta2)+L3*sin(teta1+teta2+teta3)

teta=teta1+teta2+teta3

i=i+1;

end

end

end

plot(Px,Py)

You might also like