467 Lab 8
467 Lab 8
Exercise 1
a) A=[-149 -50 -154; 537 180 546; -27 9 -25];
P=poly(A)
eig(A)=
100.9098
-97.3713
2.4615
Eig(A,B)
Exercise 2
u1 = 1*sin(2.2361*t);
u2 = 1.5*sin(2.2361*t);
plot(t,u1,t,u2)
The x-axis is shortened and only 2 full periodic peaks can be seen. The number changed is the
data sequence which is the length of the data calculated, shortening it means less of the data is
seen.
2)
3)
4)
x = 0.7*sin(2*pi*50*t) + sin(2*pi*120*t);
y=x+2*randn(size(t)); % Sinusoids plus noise
plot(y,t)
x = 0.7*sin(2*pi*50*t) + sin(2*pi*120*t);
y=x+2*randn(size(t)); % Sinusoids plus noise
plot(Fs*t(1:50),y(1:50))
title('Signal Corrupted with Zero-Mean Random Noise')
xlabel('Time (milliseconds)')
Y=fft(x,NFFT)/L;
f = Fs/2*linspace(0, 1, NFFT/2);
%Plot single-sided amplitude spectrum.
plot(f, 2*abs(Y(1:NFFT/2)))
axis([0 5 0 0.01])
title('Signal Corrupted with Zero-Mean Random Noise')
xlabel('Time (milliseconds)')