% DEMO:         USING THE SPECTRM FUNCTION
%
% Program:      spectrm_demo.m
% Written by:   
% For:          EE 311
%               Demo For Computer Lab 3
% Date:         7-14--2001
% Purpose:      Demonstrates the spectrm function

f0=220;             % Frequency of signal
fs=1000;            % Sampling Frequency
ts=1/fs;            % Time between samples
t=0:ts:1;           % One second's worth of signal
x=cos(2*pi*f0*t);   % Signal x(t)
spectrm(x,fs)       % Plot the signal