Untitled

Anonymous
plain_text
03/02/2026 5:44 AM
652 B
11
Indexable
clc;
clear all;
close all;
x=input('Enter the Sequence');
N=length(x);
n=0:1:N-1;
y=xcorr(x,x);
subplot(3,1,1);
stem(n,x);
xlabel('Time...>');
ylabel('Amplitude...>');
title('Input Seq');
subplot(3,1,2);
N=length(y);
n=0:1:N-1;
stem(n,y);
xlabel('Time..>');
ylabel('Amplitude..>');
title('Autocorr Seq for Input');
disp('Autocorr Seq for Input');
disp(y)
p=fft(y,N);
subplot(3,1,3);
stem(n,p);
xlabel('Time');
ylabel('Amplitude');
title('PSD of Input');
disp('The PSD Function:');
disp(p)
Editor is loading...
Leave a Comment