Tag: median filtering

  • Signals and Systems Lab Report – Ensemble & Median Filtering

    Signals and Systems Lab Report – Ensemble & Median Filtering

    This post list two MATLAB codes and their outputs that represent the ensemble and median filtering concepts in Signals & System. Task 1: Ensemble MATLAB Code r=50 m=0:r-1; s=2*m.*(0.9.^m); d=rand(r,1)-0.5; x1=s+d’; stem(m,x1,’g’) xlabel (‘Time’) ylabel(‘Amplitude’) title(‘Noisy Signal’) pause for n=1:50     d=rand(r,1)-0.5     x=s+dā€™;     x1=x1+x end x1=x1/50 stem(m,x1,’r’) xlabel(‘Time’) ylabel(‘Amplitude’) title(‘Ensemble Average’) Task 2: Median Filtering MATLAB Code…