Selecting an answer

조회 수: 7 (최근 30일)
Sven
Sven 2011년 11월 7일
Ok here's a brain-teaser type question. It's multiple choice. Enjoy :)
options = {'A','B','C','D};
myAnswer = options{randi(4)};
Now, what is the chance of "myAnswer" being correct for A,B,C,D below?
A) 25%
B) 50%
C) 60%
D) 25%
... and should I get the Statistics Toolbox to help me? :)
  댓글 수: 5
Andrei Bobrov
Andrei Bobrov 2011년 11월 7일
options{randi(4)} - 25% 25% 25% 25%
Sven
Sven 2011년 11월 7일
This video may help:
http://www.youtube.com/watch?feature=player_embedded&v=evKYF1G_uDI

댓글을 달려면 로그인하십시오.

답변 (1개)

LY Cao
LY Cao 2011년 11월 7일
B, have any questions?
  댓글 수: 1
Sven
Sven 2011년 11월 7일
hehe... please show your working? ;)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Puzzles에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by