No BSD License
-
X=dtftsinc(M,w)
DTFTSINC calculates samples of the discrete-time sinc function.
-
[bc,ac]=df2cf(b,a)
DF2CF Converts a filter from direct form to cascade form.
-
[poles,zeros]=pzplot(b,a,ROC)
PZPLOT plots the poles and zeros of a continuous-time LTI system.
-
ctfts(x,T)
CTFTS calculates the continuous-time Fourier transform (CTFT)
-
dpzplot(b,a)
DPZPLOT plots the poles and zeros of a discrete-time LTI system.
-
eyediagram(y,fs,dt)
EYEDIAGRAM plots the eye diagram for pulse amplitude modulation.
-
quant(x,N,m)
QUANT quantizes the elements of a vector.
-
View all files
|
|
| eyediagram(y,fs,dt) |
function eyediagram(y,fs,dt)
%EYEDIAGRAM plots the eye diagram for pulse amplitude modulation.
%
% Usage: eyediagram(y,fs,dt)
%
% The vector 'y' contains the PAM signal to be transmitted, while 'fs'
% is the oscilloscope sweep rate and 'dt' is the sampling period.
%---------------------------------------------------------------
% copyright 1996, by John Buck, Michael Daniel, and Andrew Singer.
% For use with the textbook "Computer Explorations in Signals and
% Systems using MATLAB", Prentice Hall, 1997.
%---------------------------------------------------------------
tindcs=0:dt:2/fs;
hold off;
for k=4:length(y)*dt*fs-1-4,
indcs=[(k-1)/fs/dt:(k+1)/fs/dt]+1;
plot(tindcs,y(indcs));
hold on
end
hold off
|
|
Contact us at files@mathworks.com