Code covered by the BSD License  

Highlights from
Contemporary Communications Systems Matlab Files

image thumbnail

Contemporary Communications Systems Matlab Files

by

 

Matlab Files in this book

y=rectab(x,a,b)
function y=rectab(x,a,b)
% y=rectab(x) determines a rectangular function of 
%	      width b centered at a (b>0)

y=((x>(a-b/2)) & (x<(a+b/2)))+.5*(x==(a-b/2))+0.5*(x==(a+b/2));

Contact us