can anyone help me to get output of this for loop in matrix like if number of samples are 5 then filtered signal x should be first sample in first column,second sample in second and likewise. it is getting overwrite output for filtered signal x.

12 vues (au cours des 30 derniers jours)
for k = 1:length(AudioFile)
filename = AudioFile(k).name;
[y,fs] = audioread(filename);
y = medfilt1(y(k,:),3); %spike removal of signal
[b,a] = butter(3,[25,900]/(fs/2), 'bandpass'); %bandpass filtering with order 6
x = filter(b,a,y);

Réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by