MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
reset(audioIn);% Reset audio file
Wn = [0.05,0.1,0.15,0.2];
for x=1:4000
Wn_X = ceil(x/1000);
filtLP.Numerator = fir1(160,Wn(Wn_X),'high');
audio = audioIn(); % Read audio source file
y = filtLP(audio); % Filter the data
audioOut(y); % Play the filtered data
end

34 System object Usage and Authoring

Free download pdf