Create A Function Called MyDiceRoller Function [DiceSum] = MyDiceRoller(NDice,NRolls)Where DiceSum Is A 1×N Double Array Where Each Element Of DiceSum Gives The Total Of All NDice From Each Of N Rolls. NDice Is A 1×1 Double Array Specifying The Number Of Dice To Roll. NRolls Is A 1×1 Double Array Specifying How Many Times To Roll NDice. Initialize The
in matlab please,Create A Function Called MyDiceRoller Function [DiceSum] = MyDiceRoller(NDice,NRolls)Where DiceSum Is A 1×N Double Array Where Each Element Of DiceSum Gives The Total Of All NDice From Each Of N Rolls. NDice Is A 1×1 Double Array Specifying The Number Of Dice To Roll. NRolls Is A 1×1 Double Array Specifying How Many Times To Roll NDice. Initialize The
Expert Answer
100% (1 rating)
Step 1
I’ll help you create the required function myDiceRoller and the script myDiceRollerScript in MATLAB.
OR