comparisons
This commit is contained in:
parent
dcaafdc9cf
commit
6ecd441fd5
Binary file not shown.
|
After Width: | Height: | Size: 204 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 203 KiB |
Binary file not shown.
|
|
@ -5,10 +5,22 @@
|
|||
% i between 1.95 and 2.05
|
||||
|
||||
t = (0:length(y)-1)/Fs;
|
||||
#[pwr, dur] = frequencySpectrum(y, Fs, 0);
|
||||
#xlabel("Timee (s)");
|
||||
#ylabel("Amplitude");
|
||||
%[pwr, dur] = frequencySpectrum(y, Fs, 0);
|
||||
%xlabel("Timee (s)");
|
||||
%ylabel("Amplitude");
|
||||
#spectrogram(y,Fs,5,5);
|
||||
|
||||
Fs = downsample(Fs ,4000);
|
||||
audiowrite("modulator22.wav", y, Fs);
|
||||
Factor_of_reduction = 2;
|
||||
y_down = downsample(y,Factor_of_reduction);
|
||||
y_decimate = decimate(y,Factor_of_reduction);
|
||||
audiowrite("modulator_new.wav", y_down, Fs/Factor_of_reduction);
|
||||
|
||||
plot (t,y,'b')
|
||||
hold on
|
||||
t2 = (0:length(y_down)-1)/(Fs/Factor_of_reduction);
|
||||
plot (t2,y_down,'r')
|
||||
t3 = (0:length(y_decimate)-1)/(Fs/Factor_of_reduction);
|
||||
|
||||
plot (t3,y_decimate,'g');
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue