Monday, April 18, 2011

4

matlab program for linear convolution matlab code for linear convolution linear convolution using matlab program

  • Monday, April 18, 2011
  • tech
  • Share
  • matlab program for linear convolution  
    %linear convolution
    a=input('enter the first sequence');
    b=input('enter second sequence');
    l1=length(a);
    l2=length(b);
    a=[a zeros(1,l2-1)];
    b=[b zeros(1,l1-1)];
    N=l1+l2-1;
    for k=1:N
        s=0;
        for i=1:k
            s=s+(a(i)*b(k+1-i));
        end
           c(k)=s;
    end
    l=length(c);
    n=1:1:l;
    disp(c);
    stem(n,c);
    xlabel('time');
    ylabel('amplitude');
    title('linear convolution');

    input

    enter the first sequence[2 1 1]
    enter second sequence[1 2 4]



    output
     tags:matlab program for linear convolution matlab program for convolution matlab code for linear convolution linear convolution using matlab program

    4 Responses to “matlab program for linear convolution matlab code for linear convolution linear convolution using matlab program”

    Anonymous said...
    April 26, 2011 at 1:48 PM

    Best of all in the internet....


    Noufel N Backer said...
    April 28, 2011 at 6:34 AM

    thanks dude:)


    Anonymous said...
    April 28, 2011 at 10:19 AM

    it really works!!!!!!!!!1


    Noufel N Backer said...
    May 17, 2011 at 2:45 AM

    thanks :)


    Post a Comment