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=exp_fnct(x,funfcn,k,T,p1,p2,p3)
function y=exp_fnct(x,funfcn,k,T,p1,p2,p3)
% y=exp_fnct(x,funfcn,k,T,p1,p2,p3)
%  Returns the function funfcn(x) times
%  the exponential factor exp(-j*2*pi*k/T*x)

j=sqrt(-1) ;
args=[];
for nn=1:nargin-4
  args=[args,',p',int2str(nn)];
end
args=[args,')'] ;
y=eval([funfcn,'(x',args,'.*exp(-j*2*pi*x*k/T)']);

Contact us