
%
% msd1   1 mass, 1 spring, 1 damper
%

t = 0:.01:1;

sx = t;
sy = 0.4*sin(4*pi*t);

dx = [1 0 0 1];
dy = [.2 .2 -.2 -.2];

mx = cos(2*pi*t);
my = sin(2*pi*t);

lx = [0 1];
ly = [0 0];

wx = [0 0];
wy = [-2 2];

plot(wx,wy)
hold
plot(lx,ly+.4)
plot(sx+1,sy+.4)
text(3/2,1.2,'k_1','fontsize',16)
plot(lx+2,ly+.4)

plot(lx,ly-.4)
plot(dx+1,dy-.4)
text(3/2,-1.2,'d_1','fontsize',16)
plot(lx+2,ly-.4)

plot(mx+4,my)
text(3.7,-.3,'m_1','fontsize',16)
plot([4 4],[1.2 1.8])
plot([4.1 4.5],[1.5 1.5])
plot([4.4 4.5],[1.6 1.5])
plot([4.4 4.5],[1.4 1.5])
text(4.6,1.5,'x_1','fontsize',16)
text(4.6,-1.5,'f_1','fontsize',16)
plot([4 4],[-1.2 -1.8])
plot([4.1 4.5],-[1.5 1.5])
plot([4.4 4.5],-[1.6 1.5])
plot([4.4 4.5],-[1.4 1.5])

axis equal
axis off
hold
