Create two 1D functions, plot them, and calculate and plot their Fourier transforms using fft(). Then create a 2D function and plot it and its Fourier transform using fft2().
Added by Rachael S.
Close
Step 1
To create two 1D functions, we can define two arrays with some values. Let's say we want to create a sine function and a cosine function. ```matlab % Define the x-axis values x = linspace(0, 2*pi, 100); % Create the sine function y1 = sin(x); % Create the Show more…
Show all steps
Your feedback will help us improve your experience
Tassha Calista and 66 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
5. Fourier Transforms Find the Fourier Transforms of the following functions. You can use sympy. Make sure to simplify, these shouldn't give complicated results. Plot original functions and their transforms in a nice 3 x 2 grid of plots. Label the sub plots. f(t) = { 1 if t >= 0, 0 else f(t) = 1 / (1 + t^2) f(t) = e^(-pi*t^2)
Sri K.
MATLAB HW: Create a 3D Shepp-Logan phantom by using the given MATLAB function phantom3D. Take the 3D Radon transform which projects the 3D phantom through the θ angle in the range of θ = [0, 180]. Use nested loops to evaluate the Radon transform in a volumetric approach. Perform a 2D rotation function, i.e. imrotate, on each slice. Apply the 3D back projection algorithm to the 3D Radon transform matrix.
Using MATLAB, calculate and plot the DTFT magnitude and phase for each of the following signals. (a) x[n] = n(u[n] - u[n-17]) Use L = 16, 32 point DFTs to identify the DTFTs and show your plots for -π ≤ ω ≤ π for each case of L separately. (b) x[n] = ((1/8)^n + (1/2)^n)(u[n] - u[n-33]) Assume that x[n] is obtained through uniform sampling with sampling period Ts = 0.01 without aliasing. Use L = 32, 64 point DFTs to identify the DTFTs and show your plots for -fs/2 ≤ f ≤ fs/2 for each case of L separately.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD