How to plot the frequency response of a discrete cosine function?
    6 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    

My attempt:


I tried doing it but I can't get the freq response to be plotted between  pi and pi. Any help would be appreciated.
0 Kommentare
Antworten (1)
  Rick Rosson
    
 am 14 Nov. 2015
        
      Bearbeitet: Rick Rosson
    
 am 14 Nov. 2015
  
         L = 1000;
   n = 0:L-1;
   x1 = fftshift(fft(x))/L;
   dw = 2*pi/L;
   w = -pi:dw:pi-dw;
   stem(w,mag);
Siehe auch
Kategorien
				Mehr zu Digital Filter Analysis finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


