Monday 4 June 2012
On 14:13 by Unknown in matlab tutorial 1 comment
Signals, FFT & IFFT
In Matlab we can draw different types of signal. Also do different operations on that signal in time, frequency, and Z domains. This is the beauty of DSP that we work o signals in frequency domain and then go back to Time domain easily. Here in this post I will discuss to draw different signals in Time Domain and then go to Frequency domain, do some changes in Frequency domain, then go back to Time domain and see changes which was done in Time domain.
n=0:1:1024; % Define the time interval
w1 = 0.1 * pi; % Define the Omega (w) values for cosine signals
w2 = 0.2 * pi;
w3 = 0.4 * pi;
xn = sin(w1*n) + sin(w2*n) + sin (w3*n); % Signal is a Composite signal
figure (1)
subplot(3,1,1);
plot(n,xn);
title('Original Signal X[n]');
xf = fft(xn); % fft Command is used to convert to Frequency Domain
subplot(3,1,2);
plot(n,xf);
title('X(e^jw))');
xmag = abs(xf); % Magnitude of fft Signal
subplot(3,1,3);
plot(n,xmag);
title('Magnitude of X(e^jw))');
x = sin(w3*n); % 2nd Signal in Time Domain
x_fft = fft(x); % fft of 2nd Signal
xf = xf - x_fft; % Subtract 2nd Signal from Original Signal in Frequency Domain
xnt=ifft(real(xf)); % Convert Back Modified F_domain Signal to Time domain
figure (2)
plot (n,xnt);
title('Back to Time Domain & see the changes');
a) Time Domain, b) Frequency Domain, c) Magnitude in Frequency Domain |
Reverse Signal in Time Domain From Frequency Domain |
Subscribe to:
Post Comments (Atom)
Search
Popular Posts
-
Here in this post I discuss about how to connect MATLAB? And taking images from Webcam? So first of all we need a videobject of the web...
-
Erlang B table is attached in this post with up to 115 number of channels, and more GOS probability values. This will help you to solve Erl...
-
Erlang C table is attached in this post with up to 45 number of channels, and more GOS probability values. This will help you to solve Erla...
-
Example Mini-AES Encryption The application of the four components NibbleSub , ShiftRow , MixColumn and KeyAddition in sequence con...
-
Mini Advanced Encryption Standard (Mini-AES): A Testbed for Cryptanalysis Students Raphael Chung-Wei Phan ADDRESS: Swin...
-
Programming Methodologies Two popular approaches to programming design are the structured approach and the object-oriented approach, whi...
-
Telecommunication & Networking is the emerging technologies now a days. In fast these both fields are distinguish from each other. Tel...
-
Basic to MATLAB Matlab is a commercial "Matrix Laboratory" package which operates as an interactive programming environmen...
-
Solution of DATA & Network Security Mid Term Paper Data & Network Security. ...
-
Matlab Basic Part 2 In the first Part We See Some Basic of Matlab. now in the Part 2we will see some advanced functions and methods of...
Categories
- Advanced Wireless Networks (26)
- Wireless Networks (21)
- Data and Network Security (20)
- Digital Logic Design (7)
- matlab tutorial (5)
- C Programing (3)
- Research Papers (2)
Editorial
- Javed Chaudhry (21)
- PANAMA Leaks (18)
- Wasat Ullah Khan (11)
- Abdul Qadir Hassan (10)
- PAK-America Relationship (7)
- Ali Ahmad Dhalo (6)
- Muqtada Mansoor (6)
- Asghar Abdullah (4)
- Dr. Abdul Qadeer Khan (4)
- PAK-India Relationship (4)
- Aftab Iqbal (2)
- Ayaz Ameer (2)
- Doctor Atta Ur Rehman (2)
- PAK-Afghan Relationship (2)
- PAK-Chaina Relationship (2)
- PAK-Iran Relationship (2)
- Anees Baqir (1)
Sample Text
Blog Archive
My Traffic
Powered by Blogger.
LinkLand Web Directory
ReplyDelete