You are on page 1of 4

Exp3:-WAP to compute y coordinate of a line for given xcoordinate,slope & interrupt.

Prog:t=(0:1:20);
x=t.*sin(t);
plot(x,t)
xlabel('x=t*sin(t)')
ylabel('t')

t=(0:1:20);
y=(t-1)./(t+1);
plot(y,t)
xlabel('y')
ylabel ('t')

t=(0:1:20);
z=sin(t)./t;
plot(z,t)
xlabel('z'),ylabel('t')

You might also like