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
|
|
| X=dtftsinc(M,w) |
function X=dtftsinc(M,w)
%DTFTSINC calculates samples of the discrete-time sinc function.
%
% Usage: X=dtftsinc(M,w)
%
% The vector 'X' contains 'X = sin(Mw/2)/sin(w/2)', where selective
% indexing is used to avoid division by 0.
%---------------------------------------------------------------
% 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.
%---------------------------------------------------------------
den=sin(w/2);
num=sin(M*w/2);
X=zeros(size(w));
X(den~=0)=num(den~=0)./den(den~=0);
X(den==0)=M;
|
|
Contact us at files@mathworks.com