Lab 1 Cs
Lab 1 Cs
Lab 1 Cs
01:5*pi;
z=(exp(-2*t)).*(cos((3*t)+1));
plot(t,z)
xlabel('time')
ylabel('amplitude')
title('plot')
plot(f,x)
xlabel('force')
ylabel('deflection')
title('plot')
A=[1.2 3.04 7.3 3.2; −1 −12 1.2 5; 2.7 1 −2 4; 6.6 4.51 0 1; −3 −2.2 1 6];
size(A)
multiple=A*B
A([2,3,4],[1,3])
x=A/B
A=[1.2 3.04 7.3 3.2; -1 -12 1.2 5; 2.7 1 -2 4; 6.6 4.51 0 1; -3 -2.2 1 6 ];
B=[1.3; -1; 2.5; 4.8; 1.6];
size(A)
A([2,3,4],[1,3])
x=A\B
A*B
t=-pi:0.01:5*pi;
z=(exp(-2*t)).*(cos((3*t)+1));
figure,
plot(t,z)
xlabel('time')
ylabel('amplitude')
title('plot')