Sunday, May 1, 2011

1

matlab program for autocorrelation matlab code for autocorrelation autocorrelation matlab code

  • Sunday, May 1, 2011
  • tech
  • Share
  • matlab program for autocorrelation

    program

    clear all;
    x=input('Enter the sequence');
    N=length(x);
    y=x;
    z=x;
    for i=1:N-1
        for i=N-1:-1:1
            x(i+1)=x(i);
        end
        x(1)=0;
        z=[z;x];
    end
    m=[z]*[y'];
    m=m/N;
    stem(m);
    disp(m);
    title('Auto correlation');
    xlabel('Time index');
    ylabel('Amplitude');

    input
    enter the sequence[1 2 3 4 5]

    output

    tags:autocorrelation matlab code,matlab program for autocorrelation matlab code for autocorrelation autocorrelation matlab code autocorrelation using matlab

    1 Responses to “matlab program for autocorrelation matlab code for autocorrelation autocorrelation matlab code”

    sra1reddy said...
    May 6, 2011 at 9:22 PM

    good for learners


    Post a Comment