Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Bartleby Related Questions Icon
Related questions
Question
please help. here is my code but my professor said" it was not intended to start with the sinc function to generate the plots. Should define the rectangular pulse in the time domain and then perform the fft on that." Please fix my code:
close all;
clear;
% Frequency range and increment for graph
f = -0.3:0.001:0.3;
% Establishing values for Tau and Fourier Transform functions
T1 = 5;
x1 = pi * f * T1;
M1 = (T1 * sin(x1)) ./ x1;
T2 = 10;
x2 = pi * f * T2;
M2 = (T2 * sin(x2)) ./ x2;
T3 = 25;
x3 = pi * f * T3;
M3 = (T3 * sin(x3)) ./ x3;
M1(isnan(M1)) = T1;
M2(isnan(M2)) = T2;
M3(isnan(M3)) = T3;
% Perform FFT and FFT shift for each signal
F1 = fftshift(fft(M1));
F2 = fftshift(fft(M2));
F3 = fftshift(fft(M3));
% Plot magnitude of the signals
figure(1)
plot(f, abs(M1), 'c', f, abs(M2), 'b', f, abs(M3), 'm');
xlabel('Frequency (Hz)');
ylabel('|x(f)|');
title('Magnitude Plot of Fourier Transform of x(t)');
% Plot phase using FFT and FFT shift
figure(2)
plot(f, rad2deg(angle(F1)), 'c', ...
f, rad2deg(angle(F2)), 'b', ...
f, rad2deg(angle(F3)), 'm');
xlabel('Frequency (Hz)');
ylabel('Phase (degrees)');
title('Phase Plot after FFT and FFT Shift');
Thank you I will like
Transcribed Image Text:b) Create the magnitude plot and phase plot of the spectra (Fourier Transform) for t = 5,
10, 25 [seconds]. In other words, overlap three magnitude curves for t = 5, 10, 25
in one plot; and overlap three phase curves for t = 5, 10, 25 in the other plot.
Expert Solution
Check MarkThis question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
bartleby
Step by stepSolved in 2 steps
Knowledge Booster
Background pattern image
Similar questions
- Problem_#06] Using the truth table below, develop a simplified SOP expression using a Karnaugh Map. Inputs Output АВС 0 0 0 0 0 1 01 0 01 1 10 0 10 1 1 1 0 1 1 1 1 1 0. 1 1 1 0. 1arrow_forwardProvide truth table for A-F and OUT A. F OUT A E D В. F A OUT В Earrow_forwardCan you check if its correctarrow_forward
- CREATING A CIRCUIT DIAGRAM Questions 4 and 5 refer to the function defined by the following truth table: w result 00001 00010 00110 00101 01101 01111 01010 0100 0 1 1000 1 1 0 1 0 1 111 0 11101 1 010 1 0 1 1 0 1 - 1 0010 1 000 1 Question 4 Fill in the values and draw the groupings of the Karnaugh Map. ५३ Wx 00 01. 11 10 00 01 11 10arrow_forwardFor the function, F(x, y, z) = (x+z)'+(y'z)+(xz)' find its complement. Select one: 1. (xz)' II. (x + y)' III. (xz')' IV. (x' + y + z')' V. xyz O IV. V Oll 01 OIVarrow_forwardQ 4 pleasearrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Text book imageDatabase System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationText book imageStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONText book imageDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- Text book imageC How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONText book imageDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningText book imageProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education