how to generate a( 226 × 1 ) vector "b" as a zero mean white Gaussian noise (WGN) sequence with variance =0.24e-4 ?
6 次查看(过去 30 天)
显示 更早的评论
b=wgn(256,1,??)
with var(p)=0.24e-4
0 个评论
采纳的回答
William Rose
2021-11-2
编辑:William Rose
2021-11-2
b=wgn(226,1,.24e-4,'linear');
fprintf('Variance of b=%6f\n',var(b))
If you run the code above multiple times, you will get slightly different results, since it is (pseudo)random.
4 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!