Digital Signal Processing Reference
In-Depth Information
pause;
subplot(211);plot(u);grid;
%title(' Fig 2.8 ');
%print -depsc f2_8;pause;
subplot(211);plot(x,y,'*',x,y,'-',x1,y1,'.-',x1,y1,'o');grid;
%title(' Fig 2.9 ');
[xp,yp]=ginput(1);text(xp,yp,'
< ---
Weibull distribution ');
[xp,yp]=ginput(1);text(xp,yp,'
< ---
Normal distribution ');
%print -depsc f2_9
A.2.6 Program f 21_0123
%Digital Signal Processing:A Practitioner's Approach
%Dr.Kaluri Venkata Ranga Rao, kaluri@ieee.org
%Generates figure 2.12,2.13
%This program needs pdf_y.m
% Generations of Signals for 2nd Chapter
% 25th July 2003
clear;clf;
% Statistical Signal
t=1:10000; u=randn(size(t));
[x,y]=pdf_y(u,50);
sigma=1;
xx=(x.*x)/(2*sigma);
yhat=exp(-xx)/(sqrt(2*pi*sigma));
scale=sum(yhat); yhat=yhat/scale;
[su,f1]=spk(u,1);
subplot(222);plot(x,y,'o',x,y,x,yhat,'.-');grid;
ylabel(' Statistics of uk ');
title(' B ')'
%title('Fig 2.10')
%print -depsc f21_0;pause;
subplot(221);
plot(f1,su);grid;
%title('Fig 2.11')
ylabel(' White Noise ');
title(' A ')'
%print -depsc f21_0;pause;
%print -depsc f21_1
pause
delta=0.1;
%delta=0.01;
f=100;
Search WWH ::




Custom Search