Filter löschen
Filter löschen

rng and randn on matlab

2 Ansichten (letzte 30 Tage)
mingcheng nie
mingcheng nie am 25 Aug. 2022
Kommentiert: Ashu am 6 Sep. 2022
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 Kommentar
Ashu
Ashu am 6 Sep. 2022
Can you give more clarification on what results you are getting?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Tags

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by