You are on page 1of 6

a = 2;

t1 =0;
t2 =2;
u = 3;
t = t2-t1
s = u.*t + 1/2.*a.*t.^2 %Block at t=2 sec
v = u + a.*t %velocity of block at t=2
v1 = 10
s1 = (v1.^2-u.^2)./(2.*a) %position of block when its velocity was
10m/s
t3 = (v1-u)./a % time taken by block to reach 10m/s velocity

t =

s =

10

v =

v1 =

10

s1 =

22.7500

t3 =

3.5000

Published with MATLAB® R2020b

1
% The combined equation if 1.25t^2 - 33.3t
a = 1.25
b = -33.3
c = 0
d = sqrt(b.^2 - 4.*a.*c)
t1 = ( -b + d ) ./ (2.*a) %time to intercept the speeder
t2 = ( -b - d ) ./ (2.*a) %it will be ignored
x = 1.25.*(t1.^2) %the police need to travel x mtrs.
v = c + 2.*a.*t1 %With this speed Police will catch the speeder

a =

1.2500

b =

-33.3000

c =

d =

33.3000

t1 =

26.6400

t2 =

x =

887.1120

v =

66.6000

Published with MATLAB® R2020b

1
r1 = [5 0]
r2 = [2.1.*cosd(20) 2.1.*sind(20)]
r3 = [0 0.5]
r1d = dot(r1,r1)
r2d = dot(r2,r2)
r3d = dot(r3,r3)
res = sqrt(r1d+r2d+r3d)
r = r1+r2+r3 %required displacement
angl = atand(1.2182./6.9734)

r1 =

5 0

r2 =

1.9734 0.7182

r3 =

0 0.5000

r1d =

25

r2d =

4.4100

r3d =

0.2500

res =

5.4461

r =

6.9734 1.2182

angl =

1
9.9091

Published with MATLAB® R2020b

2
sa = 6.*tand(60)
a = [6 0]
b = [0 sa]
ad = dot(a,a)
bd = dot(b,b)
sb = sqrt(ad + bd)

sa =

10.3923

a =

6 0

b =

0 10.3923

ad =

36

bd =

108

sb =

12

Published with MATLAB® R2020b

1
mag = 290./sind(52) % magnitude
xc = mag.*cosd(52) % X-component

mag =

368.0153

xc =

226.5728

Published with MATLAB® R2020b

You might also like