Wednesday 22 August 2012

dsp ;program


PROGRAM:
%Program for computing convolution and m-fold decimation by polyphase
decomposition.
clear all;
clc;
close all;
x=input(‘enter the input sequence’);
h=input(‘enter the FIR filter coefficients’);
M=input(‘enter the decimation factor’);
N1=length(x);
N=0:1:N1-1;
Subplot(2,1,1);
Stem(n,x);
Xlabel(‘time’);
Ylabel(‘amplitude’);
Title(‘X sequence response’);
N2=length(h);
n=0:1:N2-1;
Subplot(2,1,2);
Stem(n,h);
Xlabel(‘time’);
Ylabel(‘amplitude’);
Title(‘H sequence response’);
H=length(h);
P=floor((H-1)/M)+1;EC 56-Digital Signal Processing Lab
©Einstein College of Engineering
Page 37 of 81
r=reshape([reshape(h,1,H),zeros(1,P*M-H)],M,P);
X=length(x);
Y=floor((X+H-2)/M)+1;
U=floor((X+M-2)/M)+1;
R=zeros(1,X+P-1);
for m=1:M
   R=R+conv(x(1,:),r(m,:));
End
Disp(R);
N=length(R);
n=0:1:N-1;
figure(2);
stem(n,R);
xlabel(‘time’);
ylabel(‘amplitude’);
title(‘Decimation of polyphase decomposition sequence response’)

Saturday 7 July 2012

ASSIGNMENT IN DC


ASSIGNMENT IN DIGITAL                     COMMUNICATION





                               HARISH PANDIAN.R
                                                                                             10EC03

1)    THE DIFFERENCE BETWEEN THE FOURIER SERIES AND FOURIER TRANSFORM
ANS.
Fourier series :
                       Fourier series is an expansion of a periodic function using infinite sum of sines and cosines. Fourier series was initially developed when solving heat equations but later it was found out that the same technique can be used to solve a large set of mathematical problems specially the problems that involve linear differential equations with constant coefficients

Fourier transform:
                     Fourier transform defines a relationship between a signal in the time domain and its representation in the frequency domain. The Fourier transform decomposes a function into oscillatory functions. Since this is a transformation, the original signal can be obtained from knowing the transformation, thus no information is created or lost in the process.

Difference:
1)      Fourier series is an expansion of periodic signal as a linear combination of sines and cosines while Fourier transform is the process or function used to convert signals from time domain in to frequency domain
2)      Fourier series is defined for periodic signals and the Fourier transform can be applied to aperiodic  signals
3)      The study of Fourier series actually provides motivation for the Fourier transform.







2)    FOURIER TRANSFORM TIME SHIFTING PROPERTY
Ans.
              If 
             \begin{displaymath}f(t) \Leftrightarrow F(\omega) \end{displaymath}
             then 
            \begin{displaymath}f(t-t_0) \Leftrightarrow F(\omega)e^{-j\omega t_0} \end{displaymath}

      In other words, a shift in time corresponds to a change in phase in the Fourier       
      transform.
3)      TYPES OF SIGNALS (OR) FUNTIONS:
Ans.
      Step signal:
         The step signal is zero for negative input and one for positive. Thus, it is defined    
          by 

\begin{displaymath}
\mathrm{step}(x) = \left\{
\begin{array}{ll}
1 & \textrm{if $x \geq 0$}\\
0 & \textrm{if $x < 0$}\\
\end{array} \right.
\end{displaymath}
      
         






      Ramp signal:
            The Step signal can be interpreted as a ramp of width zero, when the ramp is    
       defined as follows 
       



     Impulse signal:
         The impulse function, also known as Dirac delta function or Dirac impulse, is    
          defined by 




      Sinc function :
           The Sinc function is defined in the following manner:

       Rect  function :
        The Rect Function is a function which produces a rectangular-shaped pulse with a     
        width of 1 centered at t = 0. The Rect function pulse also has a height of 1. The
         Sinc function and the rectangular function form a Fourier transform pair.
          A Rect function can be written in the form:
                                    


4)    POWER AND ENERGY SIGNALS :
ENERGY SIGNALS:
     Some signals qualify to be classified as energy signals, whereas some other signals qualify to be classified as power signals. Given a continuous-time signal f(t), the energy contained over a finite time interval is defined as follows.
                                   
      POWER SIGNAL:
           When a reference to power in a signal is made, it points to the average power. Power is defined as energy per second. For a continuous-time signal, we can obtain an expression for power from equation