This commit is contained in:
Estevan BIAU-LOYER 2023-03-24 11:59:33 +01:00
parent c895bc1d6a
commit e8766b03e3
1 changed files with 10 additions and 0 deletions

10
downsampling.m Normal file
View File

@ -0,0 +1,10 @@
clear all
close all
pkg load signal
[y,fs] = audioread('modulator22.wav');
audiowrite('outmodulator22.wav',y,fs/2);
n = length(y);
t=0:1/fs:(n-1)/fs; % time range
downsample(y,4000);
spectrogram(y,fs,5,30);
[power,duration]=frequencySpectrum(y, fs, false);