1から6までの独立かつランダムな数値を返すような関数を作成しましょう。
例:
>> [x1,x2] = rollDice();
と入力すると
x1 = 5 x2 = 2
のような解を返します。
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers404
Suggested Problems
-
Select every other element of a vector
36293 Solvers
-
7862 Solvers
-
Compute a dot product of two vectors x and y
1050 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
399 Solvers
-
Create sequnce 1 4 9 16 25.........
414 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
できました♪めっちゃヘルプ読みました。
あ、すみません。ヘルプじゃなくてdocでした!
Nice to see problems not just written in English.
これから日本語の問題を少しずつ増やす予定です。日本語 タグをつけますので、気が向いたらぜひ解いてみてくださいね。