krmla
Newbie level 1
i need your help
how i can plot the spectrum of an audio signal using mat lab
i know that i have to use like this
>> Y=fft(x);
>> hz5000=5000*length(Y)/fs;
f=(0:hz5000)*fs/length(Y);
subplot(3,1,2);
plot(f,20*log10(abs(Y(1:length(f)))+eps));
legend('Spectrum');
xlabel('Frequency (Hz)');
ylabel('Magnitude (dB)');
but the previous code plot between 1ms (=1000Hz) and 20ms (=50Hz)
i want plotting all the spectrum not for a certain part.
>>>>>>>>>>>>>>
also i want all the wave components of the aircraft sound
thanks alot..............
how i can plot the spectrum of an audio signal using mat lab
i know that i have to use like this
>> Y=fft(x);
>> hz5000=5000*length(Y)/fs;
f=(0:hz5000)*fs/length(Y);
subplot(3,1,2);
plot(f,20*log10(abs(Y(1:length(f)))+eps));
legend('Spectrum');
xlabel('Frequency (Hz)');
ylabel('Magnitude (dB)');
but the previous code plot between 1ms (=1000Hz) and 20ms (=50Hz)
i want plotting all the spectrum not for a certain part.
>>>>>>>>>>>>>>
also i want all the wave components of the aircraft sound
thanks alot..............