Professional Documents
Culture Documents
Chapter 9
Chapter 9
M=[1 0; 0 2];
K=[8 -3; -3 4];
R=[10 0]';
invM=inv(M);
%ICs
T(1)=-dt; %at time '-dt'
u1(1)=5*dt^2;
u2(1)=0;
T(2)=0; %@t=0
u1(2)=0;
u2(2)=0;
figure(11);
axes('fontsize',18);
plot(T, u1,'ro-', T, u2,'b.-');
xlabel('time');
ylabel('u_1 and u_2');
xlim([0, 4]);
grid on;