Pregunta


A group of 12 people all roll a pair of dice 12 times, how often does each person roll a total number that is greater than or equal to 7?
Find: - Create variable roll1, which is full of random integers in the interval [1,6] and has 12 rows (1 for each person's roll)...

9 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


How do I create a variable H which contains the product of 5 and the values of B in the 1st and 9th rows, and the 1st and 2nd column.
Given: B=rand(randi([10 20]),randi([5 30])) Find: Create a variable H which contains the product of 5 and the values of B in th...

9 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


How do I create a row vector P, that contains the sum of the values in column 2 and the sum of the values in column 5 of matrix B.
Given: B=rand(randi([10 20]),randi([5 30])) Find: Create a row vector P, that contains the sum of the values in column 2 and th...

9 meses hace | 1 respuesta | 0

1

respuesta