Professional Documents
Culture Documents
t=-0.25:0.001:0.25;
w1=2*pi*50;
w2=2*pi*200;
g=3*sin(w1*t)-2*cos(w2*t);
subplot (311)
plot(t,g)
G= fftshift(fft(g));
delta_t=t(2)-t(1);
f=((1:length(t))-ceil(length(t)/2))/length(t)/delta_t;
subplot(312);
plot(f,abs(G));
subplot(313);
plot(f,angle(G));
% fase, major
plot (f,unwrap(angle(G)));
FUNCIONES UTILIZADAS