Sei sulla pagina 1di 5

PART A CODE: x=random('Normal',100,1,100,100); t=[-500,500]; for i = 1:1:10 subplot(2, 5, i); plot(x(i,:)); ylabel(i) end for i = 91:1:100 subplot(2, 5, (i-90));

plot(x(i,:)); ylabel(i) end m=x(:,100); t1=[0:1:99]; plot(t1,m) y=random('Normal',0,1,100,100); for i = 1:1:10 subplot(2, 5, i); plot(y(i,:)); ylabel(i) end for i = 91:1:100 subplot(2, 5, (i-90)); plot(y(i,:)); ylabel(i) end n=y(:,100); plot(t1,n)

OUTPUT:

For the first 10 columns of x:

For the last 10 columns of x:

Plot of values at t=100 for x

For the first 10 columns of y:

For the last 10 columns of y:

Plot of values at t=100 for y

PART B CODE:

CONCLUSION: We can see that by increasing the interval, error can be reduced. PART C

The velocity of a moving object can be obtained by the formula Velocity=distance/time For circular motion, for one complete rotation, the distance travelled is and the Time taken for one complete rotation is denoted by T. For the frequency, f=1/T, therefore the formula for the angular velocity is

Potrebbero piacerti anche