lab2_4.m File Reference

Go to the source code of this file.

Functions

 fftbuffer (1:(xlength+1)/2)
 
 fftbuffer (N-(xlength-1)/2+1:N)
 
 plot (unwrap(angle(fftbuffer, 1024)))
 

Variables

 N =1024
 
 t = [0:1/44100:0.1-1/44100]
 
 x1 =cos(2*pi*100*44100/1024*t)
 
 x801 = x1(1:801)
 
 xlength =length(x801)
 
 fftbuffer =zeros(N, 1)
 

Function Documentation

fftbuffer ( 1:(xlength+1)/  2)
fftbuffer ( N-(xlength-1)/2+1:N  )
plot ( unwrap(angle(fftbuffer, 1024))  )

Variable Documentation

fftbuffer =zeros(N, 1)

Definition at line 6 of file lab2_4.m.

N =1024

Definition at line 1 of file lab2_4.m.

t = [0:1/44100:0.1-1/44100]

Definition at line 2 of file lab2_4.m.

x1 =cos(2*pi*100*44100/1024*t)

Definition at line 3 of file lab2_4.m.

x801 = x1(1:801)

Definition at line 4 of file lab2_4.m.

xlength =length(x801)

Definition at line 5 of file lab2_4.m.