You are on page 1of 4

t=-pi:0.

01:5*pi;

z=(exp(-2*t)).*(cos((3*t)+1));

plot(t,z)

xlabel('time')

ylabel('amplitude')

title('plot')

f=[0 100 200 300 400 500 600 700 800];

x=[0 0.09 0.18 0.28 0.37 0.46 0.55 0.65 0.74];

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];

B=[1.3; −1; 2.5; 4.8];

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')

f=[0 100 200 300 400 500 600 700 800];


x=[0 0.09 0.18 0.28 0.37 0.46 0.55 0.65 0.74];
figure,
plot(f,x)
xlabel('force')
ylabel('deflection')
title('plot')

You might also like