- #1
Huumah
- 28
- 0
Hi
I'm trying to use the fft function in MATLAB to compute the discrete Fourier transform of a box signal. I'm told to assume that the signal x[n] is periodic with period N and the vector contains one period.
x[n]= box [n]
I'm am going to use these commands to make my vector
x=zeros(1,N)
x(N1,N2)=1
But I'm asked to justify my choise of N, N1 and N2
And I can't really figure out what values to pick for N, N1, N2.
If my vector is for example [ 0 0 0 0 1 1 1 0 0 0]
does that count as one period?
I'm trying to use the fft function in MATLAB to compute the discrete Fourier transform of a box signal. I'm told to assume that the signal x[n] is periodic with period N and the vector contains one period.
x[n]= box [n]
I'm am going to use these commands to make my vector
x=zeros(1,N)
x(N1,N2)=1
But I'm asked to justify my choise of N, N1 and N2
And I can't really figure out what values to pick for N, N1, N2.
If my vector is for example [ 0 0 0 0 1 1 1 0 0 0]
does that count as one period?