フィルターのクリア

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

採用された回答

William Rose
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))
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 件のコメント

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by