Question
1 Plot the following function and its corresponding Fourier Transform using MATLAB from to . 2 Plot the following function using MATLAB Sol13: Here are
1 Plot the following function and its corresponding Fourier Transform using MATLAB from to .
2 Plot the following function using MATLAB
Sol13:
Here are the MATLAB codes and plots for the given functions:
- Function and Fourier Transform plot:
% Function plot
t = 0:0.01:50;
f = 12*exp(-3*t).*heaviside(t);
subplot(2,1,1);
plot(t,f);
xlabel('Time (s)');
ylabel('f(t)');
title('Function Plot');
% Fourier Transform plot
F = fft(f)/length(f);
frequencies = linspace(-1/(2*(t(2)-t(1))), 1/(2*(t(2)-t(1))), length(f));
subplot(2,1,2);
plot(frequencies, abs(fftshift(F)));
xlabel('Frequency (Hz)');
ylabel('|F(w)|');
title('Fourier Transform Plot');
- Function plot:
% Function plot
x = -5:0.01:5;
f = x.^4 + 3*x.^3 + 4*x.^2 + 2*x + 6;
plot(x,f);
xlabel('x');
ylabel('f(x)');
title('Function Plot');
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started