marcopredador
Newbie level 1
Hey all.
i have an paper work on spectral analysis in matlab.
one of the questions is:
Let be a signal in vector ‘war’, sampled with a frequency of 25kHz. Note that it is
composed of a voice signal and two sinus signals (perturbations) situated at two different
frequencies.
Analyze the signal (time, number of samples, FFT) and locate the sinuses frequencies
i have analized the signal in time, number of samples and fft the problem is locating the sinuses frequencies.
i think the idea is to find out what are the frequencies of the perturbations, i have no idea how to make it.
anny help?
i know the code is not much but here is the code i have made until now
i have an paper work on spectral analysis in matlab.
one of the questions is:
Let be a signal in vector ‘war’, sampled with a frequency of 25kHz. Note that it is
composed of a voice signal and two sinus signals (perturbations) situated at two different
frequencies.
Analyze the signal (time, number of samples, FFT) and locate the sinuses frequencies
i have analized the signal in time, number of samples and fft the problem is locating the sinuses frequencies.
i think the idea is to find out what are the frequencies of the perturbations, i have no idea how to make it.
anny help?
i know the code is not much but here is the code i have made until now
Code:
clear all
load war;
Time = length(war)/25000;%Hz
fprintf('Signal Time: %d\n',Time);
NSamples = length(war);
SampelsPerSec = length(war)/Time;
fprintf('Number of Samples: %d\n%d sampels per second (Hz)\n',NSamples, SampelsPerSec);
Y = fft(war);
plot(abs(Y));