基本信息
源码名称:随机过程的模拟与特征估计(shiyan1.m)
源码大小:0.91KB
文件格式:.m
开发语言:MATLAB
更新时间:2021-01-06
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 1 元 
   源码介绍

1、给定功率谱(相关函数)和概率分布,通过计算机模拟分析产生相应的随机过程。

2、通过该随即过程的实际功率谱(相关函数)和概率分布验证该实验的有效性。


随机信号分析与处理课后作业

w=normrnd(1,4,1,1024); 

x(1)=w(1);

i=2; 

while i<1025 

    x(i)=0.8*x(i-1) w(i); 

    i=i 1;

end 

R=xcorr(x); 

[S, W]=periodogram(x) 

 

subplot(3, 1, 1);

plot(x);

title('x (n)'); axis tight; 

subplot(3, 1, 2); 

plot(R);

title('R(m)'); axis tight 

subplot(3, 1, 3); 

plot(S);

title('S(W)'); axis tight;

%%

N=256;

n=1:1:N;

w=randn(1,N);

f1=0.05;

f2=0.12;

x=sin(2*pi*f1*n) 2*cos(2*pi*f2*n) w(n);

R=xcorr(x); 

[S, W]=periodogram(x) 

 

subplot(3, 1, 1);

plot(x);

title('x (n) N=256'); axis tight; 

subplot(3, 1, 2); 

plot(R);

title('R(m) N=256'); axis tight 

subplot(3, 1, 3); 

plot(S);

title('S(W) N=256'); axis tight;

%%

N=1024;

n=1:1:N;

w=randn(1,N);

f1=0.05;

f2=0.12;

x=sin(2*pi*f1*n) 2*cos(2*pi*f2*n) w(n);

R=xcorr(x); 

[S, W]=periodogram(x) 

 

subplot(3, 1, 1);

plot(x);

title('x (n) N=1024'); axis tight; 

subplot(3, 1, 2); 

plot(R);

title('R(m) N=1024'); axis tight 

subplot(3, 1, 3); 

plot(S);

title('S(W) N=1024'); axis tight;