Skip to main content
deleted 49 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17

However, I do know that the command X[k] = fftshift(fft(ifftshift(x[n])))*Ts works, and produces the correct thing, because I have shown it in the graphs in the OP. So, and so this command must be equivalent to Eq. (4), but I am not sure how to mathematically prove it.

It is now in a form that I can recognise Matlab's fft() expression in there (although in the term I have indicated the fft() is applied to $x[n]$, not the shifted version),   but this is where I am stuck - how can I show that this last equation is indeed calculated by the command

However, I do know that the command X[k] = fftshift(fft(ifftshift(x[n])))*Ts works, and produces the correct thing, because I have shown it in the graphs in the OP, and so this command must be equivalent to Eq. (4).

It is now in a form that I can recognise Matlab's fft() expression in there (although in the term I have indicated the fft() is applied to $x[n]$, not the shifted version), but this is where I am stuck - how can I show that this last equation is indeed calculated by the command

However, I do know that the command X[k] = fftshift(fft(ifftshift(x[n])))*Ts works, and produces the correct thing, because I have shown it in the graphs in the OP. So, this command must be equivalent to Eq. (4), but I am not sure how to mathematically prove it.

It is now in a form that I can recognise Matlab's fft() expression in there   but this is where I am stuck - how can I show that this last equation is indeed calculated by the command

added 73 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17

However, I do know that the command X[k] = fftshift(fft(ifftshift(x[n])))*Ts works, and produces the correct thing, because I have shown it in the graphs in the OP. Therefore, I must be able to show that

  • $y[n]$ is an ifftshifted version of $x[n]$
  • $X[k]$ is an fftshifted version of $Y[k]$.

In doingand so, I should this command must be able to express Eq. (4) in such a way that if ifftshift() is first applied to my signal $x[n]$, then Eq. (5) (the Matlab fft) is applied, and finally fftshift() is appliedequivalent to the result, then I should obtain exactly the expression for $X[k]$, given by Eq. (4).

I am not even sure howhave a feeling that there might be a way to mathematically represent these two operations (which essentially just swapuse the two halves ofshift theorem to show that if you circularly shift the vectors around)through ifftshift and fftshift then you can cancel the extra phase factors, and the fft can be applied. 

As a quick sanity check so far, I can also verify thaton Eq.  (6) is correct up to this pointso far, I can verify it by manually evaluating the two things for a simple test vector of six numbers:

However, I do know that the command X[k] = fftshift(fft(ifftshift(x[n])))*Ts works, and produces the correct thing, because I have shown it in the graphs in the OP. Therefore, I must be able to show that

  • $y[n]$ is an ifftshifted version of $x[n]$
  • $X[k]$ is an fftshifted version of $Y[k]$.

In doing so, I should be able to express Eq. (4) in such a way that if ifftshift() is first applied to my signal $x[n]$, then Eq. (5) (the Matlab fft) is applied, and finally fftshift() is applied to the result, then I should obtain exactly the expression for $X[k]$, given by Eq. (4).

I am not even sure how to mathematically represent these two operations (which essentially just swap the two halves of the vectors around). As a sanity check so far, I can also verify that Eq.(6) is correct up to this point, by manually evaluating the two things for a simple test vector:

However, I do know that the command X[k] = fftshift(fft(ifftshift(x[n])))*Ts works, and produces the correct thing, because I have shown it in the graphs in the OP, and so this command must be equivalent to Eq. (4).

I have a feeling that there might be a way to use the shift theorem to show that if you circularly shift the vectors through ifftshift and fftshift then you can cancel the extra phase factors, and the fft can be applied. 

As a quick sanity check on Eq.  (6) so far, I can verify it by manually evaluating the two things for a simple test vector of six numbers:

added 33 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17

I can put this sampled version intowrite the CTFT formula as a Riemann sum, and insert this sampled signal into it (assuming I captured sufficiently the underlying signal) to obtain $$ \begin{align} X(f) &= \lim_{T_s\rightarrow0} \sum^{N}_{n=1} x[n] \exp \bigg( -2\pi i f \bigg[(n-1)\;T_s-\frac{T}{2}\bigg] \bigg)\cdot T_s\\ &\approx \sum^{N}_{n=1} x[n] \exp \bigg( -2\pi i f \bigg[(n-1)\;T_s-\frac{T}{2}\bigg] \bigg)\cdot T_s. \end{align} $$

I can put this sampled version into the CTFT formula (assuming I captured sufficiently the underlying signal) to obtain $$ \begin{align} X(f) &= \lim_{T_s\rightarrow0} \sum^{N}_{n=1} x[n] \exp \bigg( -2\pi i f \bigg[(n-1)\;T_s-\frac{T}{2}\bigg] \bigg)\cdot T_s\\ &\approx \sum^{N}_{n=1} x[n] \exp \bigg( -2\pi i f \bigg[(n-1)\;T_s-\frac{T}{2}\bigg] \bigg)\cdot T_s. \end{align} $$

I can write the CTFT formula as a Riemann sum, and insert this sampled signal into it (assuming I captured sufficiently the underlying signal) to obtain $$ \begin{align} X(f) &= \lim_{T_s\rightarrow0} \sum^{N}_{n=1} x[n] \exp \bigg( -2\pi i f \bigg[(n-1)\;T_s-\frac{T}{2}\bigg] \bigg)\cdot T_s\\ &\approx \sum^{N}_{n=1} x[n] \exp \bigg( -2\pi i f \bigg[(n-1)\;T_s-\frac{T}{2}\bigg] \bigg)\cdot T_s. \end{align} $$

added 2 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 8 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
Tweeted twitter.com/StackSignals/status/1253383178024300544
deleted 592 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
deleted 592 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 315 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 315 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 807 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 67 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
deleted 41 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 2 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 8 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 9 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 100 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 100 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
Added my own attempt at reaching an answer (not complete yet)
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 26 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
Became Hot Network Question
added 355 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 374 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 35 characters in body; edited title
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading
added 86 characters in body
Source Link
teeeeee
  • 691
  • 7
  • 17
Loading