rng and randn on matlab

2 次查看(过去 30 天)
mingcheng nie
mingcheng nie 2022-8-25
评论: Ashu 2022-9-6
Hi there,
Can we say this code has a good approximation about the channel coefficient for each SNR?
rng(1)
SNR=10:5:20;
N_frame=100000;
taps=4;
for i=1:length(SNR)
for 1:N_frame
chan_coef=sqrt(1/2)*(randn(1,taps)+1i*randn(1,taps));
...
end
end
My result showed that in one SNR condition, the chan_coef will be extremely small, but didn't appear in other SNR condition
  1 个评论
Ashu
Ashu 2022-9-6
Can you give more clarification on what results you are getting?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Filter Analysis 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by