% Compute and plot the Power Spectrum Density via Periodogram of a 200 Hz 
% signal embedded in additive noise using the default window:

% This file uses the file "periodogram.m" included in Matlab7

randn('state',0);
Fs = 1000;   
t = 0:1/Fs:.3;
x = cos(2*pi*t*200)+0.1*randn(size(t)); 
periodogram(x,[],'twosided',512,Fs)
% The 'onesided' option can be replaced by 'twosided'


% The MathWorks Inc, Matlab7, (c) Copyright 1984-2004. 



