フィルターのクリア

iid in Matlab

5 ビュー (過去 30 日間)
Natalia
Natalia 2011 年 7 月 3 日
Hey, guys! I need help to do the following operation in Matlab: miu= prob(a=a_h) and 1- miu = prob (a=a_l) and it follows iid.. How to do it?
Thank you in advance,
  1 件のコメント
bym
bym 2011 年 7 月 3 日
you have to provide more detail to get an answer

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

採用された回答

Rick Rosson
Rick Rosson 2011 年 7 月 3 日
The rand function returns a pseudo-random, iid number between 0 and 1 with a uniform pdf. If you compare the result of calling rand to a desired threshold (e.g. miu), you will have the desired solution.
For more information:
doc rand
HTH.
  1 件のコメント
Natalia
Natalia 2011 年 7 月 3 日
Thanks a lot, Rick Rosson!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by