필터 지우기
필터 지우기

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 CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by