Finished DSP lab 4

This commit is contained in:
Aidan Sharpe
2024-04-17 22:51:14 -04:00
parent df7d52f4b1
commit 98168e00bd
9 changed files with 155 additions and 114 deletions

View File

@@ -48,7 +48,7 @@ where $r$ is the common ratio between adjacent terms. For the $N$-point DFT of $
\end{cases}.
\label{eqn:DFT_N_point}
\end{equation}
The $N$-point DFT of $x[n]$, where $N=8$ is seen in figure \ref{fig:N_point_DFT}. It only has a non-zero value for $k={N\over2}=4$. This is the case for all even-number-point DFTs. Therefore only odd-number-point DFTs should be used.
The $N$-point DFT of $x[n]$, where $N=8$ is seen in figure \ref{fig:N_point_DFT}. It only has a non-zero value for $k={N\over2}=4$. This is the case for all even-number-point DFTs. Therefore, only odd-number-point DFTs should be used.
\begin{figure}[h]
\center
\includegraphics[width=0.5\textwidth]{N8_point_DFT.png}
@@ -57,21 +57,39 @@ The $N$-point DFT of $x[n]$, where $N=8$ is seen in figure \ref{fig:N_point_DFT}
\end{figure}
For example, the 9-point DFT of $x[n]$, where $N=8$ is seen in figure \ref{fig:9_point_DFT}. While equation \ref{eqn:DFT_N_point} cannot be used because there are a different number of samples for the DFT and the input signal, the overall DFT is more useful than the 8-point DFT.
\begin{figure}[h]
\center
\center
\includegraphics[width=0.5\textwidth]{Q9_point_DFT.png}
\caption{The 9-point DFT of $x[n]$, where $N=8$}
\label{fig:9_point_DFT}
\end{figure}
\subsection{The Z-Transform}
Given a discrete signal, $x[n]$, its z-transform is given by
\begin{equation}
X(z) = \sum_n x[n] z^{-n}
\end{equation}
where $z$ is a complex variable.
where $z$ is a complex variable. The Z-transform of any discrete signal is a continuous function. Therefore, any attempt to calculate the Z-transform with a digital computer requires sampling or symbolic math. Symbolic math is quite a powerful tool, and others have worked hard to implement the Z-transform as a symbolic function. In MATLAB, this function is \verb|ztrans|.
\\
\\
The Z-transform of the following signals can be found very quickly using this method:
$$x_1[n] = a^n u[n]$$
$$x_2[n] = (n+1)a^n u[n]$$
$$x_3[n] = a^n \cos(bn) u[n]$$
$$\mathcal{Z}\{x_1[n]\} = -{z \over a - z}$$
$$\mathcal{Z}\{x_2[n]\} = {az \over (a - z)^2} - {z \over a - 2}$$
$$\mathcal{Z}\{x_3[n]\} = -{z(\cos(b) - z/a) \over a{z^2\over a^2} - {2z\cos(b) \over a} + 1}$$
\subsection{The Inverse Z-Transform}
Similarly, the inverse Z-transform also benefits from using a symbolic calculator. For example, the inverse Z-transform of the following can be found rapidly:
$$\mathcal{Z}\{x_4[n]\} = {z \over z + 0.5}$$
$$\mathcal{Z}\{x_5[n]\} = {z^2 \over (z-0.8)^2}$$
$$\mathcal{Z}\{x_6[n]\} = {z \over (z+0.3)(z+0.6)^2}$$
$$x_4[n] = (-1/2)^n$$
$$x_5[n] = 2(4/5)^n (n-1)(4/5)^n$$
$$x_6[n] = {50n(-3/5)^n - 100(-3/5)^n + 100(-3/10)^n \over 9}$$
\section{Conclusions}
Overall understanding tricks for calculating geometric sums is very helpful for calculating DFTs. It is also important to use odd-number-point DFTs only, as taking an even number of samples forces almost all values to go to zero. As for Z-transforms and inverse Z-transforms, knowing how to use symbolic computation makes finding them quite easy. Additionally, symbolic computation allows for the easy manipulation of how simplified or expanded the result is.
\end{document}