How can I make that using MATLAB
Mostrar comentarios más antiguos
Respuestas (1)
Walter Roberson
el 10 de Oct. de 2021
Editada: Walter Roberson
el 10 de Oct. de 2021
0 votos
Probability for discrete events is number of elements (events) that a condition holds for, times the probability of the event, divided by total weight. Total weight of that matrix is 1.
For example, the entire first row is associated with X = 1, and 1 <= 1 1/2, so take the weights of the first row, 1/12 + 1/16 + 1/12 = 1/6 . None of the entries in the second or third row matches, so nothing is added for those rows. Total probability is (1/6) divided by (1) where the (1) is the total weight for the matrix.
2 comentarios
Fayez Aljuaid
el 10 de Oct. de 2021
Hint:
[A, B] = ndgrid(4:7, 3:8)
mask = A == 4 & B >= 6
Categorías
Más información sobre Polynomials en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
