Code covered by the BSD License  

Highlights from
Contemporary Communications Systems Matlab Files

image thumbnail

Contemporary Communications Systems Matlab Files

by

Omar Ruiz (view profile)

 

Matlab Files in this book

ip_01_08.m
% MATLAB script for Illustrartive Problem 8, Chapter 1.
clear
ts=0.001;                          
Fs=1/ts;                           
t=[0:ts:10];                       
x=cos(2*pi*47*t)+cos(2*pi*219*t);  
p=spower(x);                        
h = spectrum.periodogram; 
Hpsd = psd(h,x,'Fs',Fs);             % Calculate the PSD 
pause   % Press a key to see the power in the signal.
p
pause   % Press a key to see the power spectrum.
plot(Hpsd)                           % Plot the PSD.

Contact us