Clear Filters
Clear Filters

how to generate a( 226 × 1 ) vector "b" as a zero mean white Gaussian noise (WGN) sequence with variance =0.24e-4 ?

5 views (last 30 days)
b=wgn(256,1,??)
with var(p)=0.24e-4

Accepted Answer

William Rose
William Rose on 2 Nov 2021
Edited: William Rose on 2 Nov 2021
b=wgn(226,1,.24e-4,'linear');
fprintf('Variance of b=%6f\n',var(b))
Variance of b=0.000024
If you run the code above multiple times, you will get slightly different results, since it is (pseudo)random.
  4 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!