Code covered by the BSD License  

Highlights from
MATLAB for Digital Communication

image thumbnail

MATLAB for Digital Communication

by

 

The MATLAB programs in "MATLAB/Simulink for Digital Communication" authored by Won Y. Yang et. al

test_corr_circular.m
%test_corr_circular.m
clear, clf
Nt=160; T=1/32; t=[0:Nt-1]*T; P=1; N=P/T;
X = sin(2*pi/P*t);  y = cos(2*pi/P*t);
z = corr_????????(x,y,N); % Circular correlation of x(t) and y(t)
subplot(311), plot(t,x), title('x(t)=sin(2*pi*t)')
set(gca,'fontsize',9, 'YLim',[-1.1  1.1])
subplot(312), plot(t,y), title('y(t)=cos(2*pi*t)')
set(gca,'fontsize',9, 'YLim',[-1.1  1.1])
subplot(313), plot(t,repmat(z,1,Nt/N))
title('z(t)=circular correlation of x(t) and y(t)')
set(gca,'fontsize',9, 'YLim',[-1.1  1.1])

Contact us